Skip to content

Commit 375d1e7

Browse files
authored
#1964: Fix - Exception when selecting style inside layer setting of the TOC (#1967)
1 parent b639ff8 commit 375d1e7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

geonode_mapstore_client/client/js/plugins/VisualStyleEditor.jsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ function StyleEditorTocButton({
316316
}) {
317317
const mapLayer = layer?.extendedParams?.mapLayer;
318318
if (hide
319-
|| status !== statusTypes.LAYER
319+
|| status !== statusTypes?.LAYER
320320
|| !mapLayer?.dataset
321321
|| mapLayer?.dataset?.sourcetype === SOURCE_TYPES.REMOTE
322322
|| !changeResource
@@ -368,10 +368,6 @@ export default createPlugin('VisualStyleEditor', {
368368
target: 'toolbar',
369369
Component: ConnectedStyleEditorTocButton,
370370
position: 100
371-
},
372-
LayerSettings: {
373-
target: 'style-button',
374-
Component: ConnectedStyleEditorTocButton
375371
}
376372
},
377373
reducers: {

0 commit comments

Comments
 (0)