Skip to content

Commit

Permalink
Hide measurements panel if loading failed
Browse files Browse the repository at this point in the history
  • Loading branch information
joverlee521 committed Oct 30, 2024
1 parent 947eda6 commit 6c2308a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/actions/recomputeReduxState.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,11 @@ export const createStateFromQueryOrJSONs = ({
measurements.collectionToDisplay = collectionToDisplay;
controls = {...controls, ...collectionControls};
query = updatedQuery;
} else {
// Hide measurements panel if loading failed
controls.panelsToDisplay = controls.panelsToDisplay.filter((panel) => panel !== "measurements");
controls.canTogglePanelLayout = hasMultipleGridPanels(controls.panelsToDisplay);
controls.panelLayout = controls.canTogglePanelLayout ? controls.panelLayout : "full";
}

/* certain narrative slides prescribe the main panel to simply render narrative-provided markdown content */
Expand Down

0 comments on commit 6c2308a

Please sign in to comment.