From 11f305f88ab18c6b1bda1947a8b7995896e4fd00 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Wed, 9 Dec 2020 17:02:57 +0100 Subject: [PATCH] [v7.3.x] Fix: Correct panel edit uistate migration (#29413) (#29711) * Fix: Correct panel edit uistate migration (#29413) (cherry picked from commit 26e3b61f92c61e5892ba1e1de87909d660f1b069) * prettier --- .../dashboard/components/PanelEditor/state/reducers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard/components/PanelEditor/state/reducers.ts b/public/app/features/dashboard/components/PanelEditor/state/reducers.ts index 578287de8ef..ce688c2e575 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 {