Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jul 1, 2024
1 parent 6173dab commit 58e0997
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/base/src/panelview/components/layers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ function LayersBodyComponent(props: IBodyProps): JSX.Element {
<div>
{layersTree.map(layer =>
typeof layer === 'string' ? (
<LayerComponent gisModel={model} layerId={layer} onClick={onItemClick} />
<LayerComponent
gisModel={model}
layerId={layer}
onClick={onItemClick}
/>
) : (
<LayersGroupComponent
gisModel={model}
Expand Down Expand Up @@ -213,9 +217,7 @@ interface ILayerProps {
function isSelected(layerId: string, model: IJupyterGISModel | undefined) {
return (
(model?.localState?.selected?.value &&
Object.keys(model?.localState?.selected?.value).includes(
layerId
)) ||
Object.keys(model?.localState?.selected?.value).includes(layerId)) ||
false
);
}
Expand Down Expand Up @@ -249,9 +251,7 @@ function LayerComponent(props: ILayerProps): JSX.Element {
gisModel?.clientStateChanged.connect(onClientSharedStateChanged);

return () => {
gisModel?.clientStateChanged.disconnect(
onClientSharedStateChanged
);
gisModel?.clientStateChanged.disconnect(onClientSharedStateChanged);
};
}, [gisModel]);

Expand Down

0 comments on commit 58e0997

Please sign in to comment.