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:
@@ -31,7 +31,7 @@ export class PanelPerformanceMetrics extends SceneObjectBase<PanelPerformanceMet
|
||||
}
|
||||
|
||||
const panelId = getPanelIdForVizPanel(panel);
|
||||
if (!panelId) {
|
||||
if (panelId == null || isNaN(panelId)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user