Skip to content

Commit

Permalink
Fix: Correct panel edit uistate migration (grafana#29413)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterholmberg authored Nov 26, 2020
1 parent d10a8b2 commit 26e3b61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 26e3b61

Please sign in to comment.