Skip to content

Commit

Permalink
Fix loading state from url
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisthual committed Jan 31, 2024
1 parent ff6d861 commit c734a77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/src/views/surface/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ const SurfaceExplorer = ({ datasetId }: SurfaceViewProps) => {
setUnit(value.data.unit);
});

setState({ panes: {} });
if (state.panes === undefined) {
setState({ panes: {} });
}
}, [datasetId, setState]);

const selectedVoxels = Object.keys(state.panes).map((paneId: any) => [
Expand Down

0 comments on commit c734a77

Please sign in to comment.