mirror of
https://github.com/grafana/grafana.git
synced 2025-01-07 22:53:56 -06:00
Fix: Correct panel edit uistate migration (#29413)
This commit is contained in:
parent
d10a8b2761
commit
26e3b61f92
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user