[v11.1.x] Scenes: Save height as itemHeight for repeat panels (#90606)

Scenes: Save height as itemHeight for repeat panels (#90487)

(cherry picked from commit 5afb1c6ce0)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-07-23 14:15:44 +02:00
committed by GitHub
co-authored by kay delaney
parent 417edf5c43
commit 907916dc39
@@ -171,7 +171,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 });
}
@@ -199,7 +199,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');