Fix: Correct panel edit uistate migration (#29413)

This commit is contained in:
Peter Holmberg 2020-11-26 14:57:32 +01:00 committed by GitHub
parent d10a8b2761
commit 26e3b61f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {