diff --git a/public/app/features/dashboard/components/PanelEditor/state/reducers.ts b/public/app/features/dashboard/components/PanelEditor/state/reducers.ts index a6d6741cc0b..f1389de3078 100644 --- a/public/app/features/dashboard/components/PanelEditor/state/reducers.ts +++ b/public/app/features/dashboard/components/PanelEditor/state/reducers.ts @@ -41,8 +41,8 @@ export const initialState = (): PanelEditorState => { let migratedState = { ...storedUiState }; - if (typeof storedUiState.rightPaneSize === 'string') { - migratedState = { ...storedUiState, rightPaneSize: parseFloat(storedUiState.rightPaneSize) / 100 }; + if (typeof storedUiState.topPaneSize === 'string') { + migratedState = { ...storedUiState, topPaneSize: parseFloat(storedUiState.topPaneSize) / 100 }; } return {