[v7.3.x] Fix: Correct panel edit uistate migration (#29413) (#29711)

* Fix: Correct panel edit uistate migration (#29413)

(cherry picked from commit 26e3b61f92)

* prettier
This commit is contained in:
Peter Holmberg
2020-12-09 17:02:57 +01:00
committed by GitHub
parent 3795ad5af0
commit af42131433
@@ -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 {