Skip to content

Commit f8cfda2

Browse files
committed
cleanup
1 parent 9146c66 commit f8cfda2

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

packages/compass-schema/src/stores/reducer.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ export const _trackSchemaShared = (
161161
};
162162
};
163163

164-
/**
165-
* @return {Object} initial schema state.
166-
*/
167164
const getInitialState = (): SchemaState => ({
168165
analysisState: ANALYSIS_STATE_INITIAL,
169166
errorMessage: '',
@@ -210,7 +207,7 @@ export const geoLayersDeleted = (
210207

211208
export const stopAnalysis = (): SchemaThunkAction<void> => {
212209
return (dispatch, getState, { abortControllerRef }) => {
213-
if (!abortControllerRef) return;
210+
if (!abortControllerRef.current) return;
214211
abortControllerRef.current?.abort();
215212
};
216213
};

packages/compass-schema/src/stores/store.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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()));

0 commit comments

Comments
 (0)