From 9b53b589f854d10df635b4f15040acef4d8ce7f0 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 21 Apr 2024 10:03:43 -0700 Subject: [PATCH] Fix detect saved view is modified if display mode null and not small cards --- .../app/components/document-list/document-list.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src-ui/src/app/components/document-list/document-list.component.ts b/src-ui/src/app/components/document-list/document-list.component.ts index 8271f96ab..d56f9c508 100644 --- a/src-ui/src/app/components/document-list/document-list.component.ts +++ b/src-ui/src/app/components/document-list/document-list.component.ts @@ -100,6 +100,9 @@ export class DocumentListComponent this.unmodifiedSavedView.page_size !== this.list.pageSize) || (this.unmodifiedSavedView.display_mode && this.unmodifiedSavedView.display_mode !== this.list.displayMode) || + // if the saved view has no display mode, we assume it's small cards + (!this.unmodifiedSavedView.display_mode && + this.list.displayMode !== DisplayMode.SMALL_CARDS) || (this.unmodifiedSavedView.display_fields && this.unmodifiedSavedView.display_fields.join(',') !== this.activeDisplayFields.join(',')) ||