mirror of
https://github.com/grafana/grafana.git
synced 2025-02-09 23:16:16 -06:00
Scenes: Save height as itemHeight for repeat panels (#90487)
This commit is contained in:
parent
19706bab61
commit
5afb1c6ce0
@ -172,7 +172,7 @@ export function gridItemToPanel(
|
||||
x = gridItem.state.x ?? 0;
|
||||
y = gridItem.state.y ?? 0;
|
||||
w = gridItem.state.width ?? 0;
|
||||
h = gridItem.state.height ?? 0;
|
||||
h = gridItem.state.itemHeight ?? gridItem.state.height ?? 0;
|
||||
|
||||
return libraryVizPanelToPanel(gridItem.state.body, { x, y, w, h });
|
||||
}
|
||||
@ -200,7 +200,7 @@ export function gridItemToPanel(
|
||||
x = gridItem_.state.x ?? 0;
|
||||
y = gridItem_.state.y ?? 0;
|
||||
w = gridItem_.state.width ?? 0;
|
||||
h = gridItem_.state.height ?? 0;
|
||||
h = gridItem_.state.itemHeight ?? gridItem_.state.height ?? 0;
|
||||
|
||||
if (!vizPanel) {
|
||||
throw new Error('Unsupported grid item type');
|
||||
|
Loading…
Reference in New Issue
Block a user