From becc5aba941016659c20434810c966bbf5bab518 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 19 Feb 2025 15:11:54 -0800 Subject: [PATCH] Fix frontend with empty display_fields --- .../widgets/saved-view-widget/saved-view-widget.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts b/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts index 32bf7a004..8399b06e1 100644 --- a/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts +++ b/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts @@ -145,7 +145,10 @@ export class SavedViewWidgetComponent }) } - if (this.savedView.display_fields) { + if ( + this.savedView.display_fields && + this.savedView.display_fields.length > 0 + ) { this.displayFields = this.savedView.display_fields }