GenAI: Fix uncaught error when panel title is missing (#112277)
This commit is contained in:
1 parent
6059ef3d83
commit
cb91186276
1 file changed
+1
-3
@@ -164,9 +164,7 @@ export const DASHBOARD_NEED_PANEL_TITLES_AND_DESCRIPTIONS_MESSAGE =
|
||||
export function getPanelStrings(dashboard: DashboardModel): string[] {
|
||||
const panelStrings = dashboard.panels
|
||||
.filter(
|
||||
(panel) =>
|
||||
(panel.title.length > 0 && panel.title !== NEW_PANEL_TITLE) ||
|
||||
(panel.description && panel.description.length > 0)
|
||||
(panel) => (panel.title && panel.title !== NEW_PANEL_TITLE) || (panel.description && panel.description.length > 0)
|
||||
)
|
||||
.map(getPanelString);
|
||||
|
||||
|
||||
Reference in new issue
Block a user