Skip to content

Commit

Permalink
Minor updates. One more action for cancel. Type updates. Snapshot update
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Jun 28, 2021
1 parent 21e4f26 commit d2193e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
hideTOCDetails,
showTOCDetails,
toggleLayerVisible,
setDrawMode,
setDrawMode, updateDrawState,
} from '../../../../../actions';
import { DRAW_MODE } from '../../../../../../common';

Expand Down Expand Up @@ -66,6 +66,7 @@ function mapDispatchToProps(dispatch: ThunkDispatch<MapStoreState, void, AnyActi
dispatch(toggleLayerVisible(layerId));
},
cancelEditing: () => {
dispatch(updateDrawState(null));
dispatch(setDrawMode(DRAW_MODE.NONE));
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const defaultProps = {
hideTOCDetails: () => {},
showTOCDetails: () => {},
editModeActiveForLayer: false,
cancelEditing: () => {},
};

describe('TOCEntry', () => {
Expand Down

0 comments on commit d2193e9

Please sign in to comment.