File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
packages/compass-schema/src/stores Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -161,9 +161,6 @@ export const _trackSchemaShared = (
161161 } ;
162162} ;
163163
164- /**
165- * @return {Object } initial schema state.
166- */
167164const getInitialState = ( ) : SchemaState => ( {
168165 analysisState : ANALYSIS_STATE_INITIAL ,
169166 errorMessage : '' ,
@@ -210,7 +207,7 @@ export const geoLayersDeleted = (
210207
211208export const stopAnalysis = ( ) : SchemaThunkAction < void > => {
212209 return ( dispatch , getState , { abortControllerRef } ) => {
213- if ( ! abortControllerRef ) return ;
210+ if ( ! abortControllerRef . current ) return ;
214211 abortControllerRef . current ?. abort ( ) ;
215212 } ;
216213} ;
Original file line number Diff line number Diff line change @@ -60,10 +60,8 @@ export function activateSchemaPlugin(
6060 * When `Share Schema as JSON` clicked in menu show a dialog message.
6161 */
6262
63- on (
64- services . localAppRegistry ,
65- 'menu-share-schema-json' ,
66- ( ) => store . dispatch ( handleSchemaShare ( ) ) // TODO: get the action
63+ on ( services . localAppRegistry , 'menu-share-schema-json' , ( ) =>
64+ store . dispatch ( handleSchemaShare ( ) )
6765 ) ;
6866
6967 addCleanup ( ( ) => store . dispatch ( stopAnalysis ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments