Skip to content

Commit

Permalink
fix: dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasLohoff committed Nov 7, 2024
1 parent 09d55d7 commit 7323b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LayerTree/LayerTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const LayerTree: React.FC<LayerTreeProps> = ({
if (_isFunction(onLayerVisibilityChanged)) {
onLayerVisibilityChanged(layer, checked);
}
}, [map, setLayerVisibility]);
}, [map, setLayerVisibility, onLayerVisibilityChanged]);

const onDrop = useCallback((info: NodeDragEventParams<DataNode> & {
dragNode: EventDataNode<DataNode>;
Expand Down

0 comments on commit 7323b86

Please sign in to comment.