diff --git a/src/reducers/controls.ts b/src/reducers/controls.ts index 6682271a0..7428750ea 100644 --- a/src/reducers/controls.ts +++ b/src/reducers/controls.ts @@ -12,7 +12,21 @@ import { calcBrowserDimensionsInitialState } from "./browserDimensions"; import { doesColorByHaveConfidence } from "../actions/recomputeReduxState"; import { hasMultipleGridPanels } from "../actions/panelDisplay"; +interface Defaults { + distanceMeasure: string + layout: string + geoResolution: string + filters: Record + filtersInFooter: string[] + colorBy: string + selectedBranchLabel: string + tipLabelKey: typeof strainSymbol + showTransmissionLines: boolean + sidebarOpen?: boolean +} + export interface BasicControlsState { + defaults: Defaults panelsAvailable: string[] panelsToDisplay: string[] showTreeToo: boolean @@ -40,7 +54,7 @@ export interface ControlsState extends BasicControlsState, MeasurementsControlSt at any time, e.g. if we want to revert things (e.g. on dataset change) */ export const getDefaultControlsState = () => { - const defaults: Partial = { + const defaults: Defaults = { distanceMeasure: defaultDistanceMeasure, layout: defaultLayout, geoResolution: defaultGeoResolution,