Fix: Enhance panel ID validation in PanelPerformanceMetrics

This commit updates the panel ID validation logic in the PanelPerformanceMetrics component to check for both null and NaN values, ensuring more robust handling of invalid panel IDs.
This commit is contained in:
David Kaltschmidt
2025-12-05 17:32:12 +01:00
parent b5320defd1
commit c4ee6a6425
@@ -31,7 +31,7 @@ export class PanelPerformanceMetrics extends SceneObjectBase<PanelPerformanceMet
}
const panelId = getPanelIdForVizPanel(panel);
if (!panelId) {
if (panelId == null || isNaN(panelId)) {
return;
}