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

This commit is contained in:
kay delaney 2024-07-18 14:01:50 +01:00 committed by GitHub
parent 19706bab61
commit 5afb1c6ce0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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');