Fix detect saved view is modified if display mode null and not small cards

This commit is contained in:
shamoon 2024-04-21 10:03:43 -07:00
parent 19d25a5342
commit 9b53b589f8

View File

@ -100,6 +100,9 @@ export class DocumentListComponent
this.unmodifiedSavedView.page_size !== this.list.pageSize) || this.unmodifiedSavedView.page_size !== this.list.pageSize) ||
(this.unmodifiedSavedView.display_mode && (this.unmodifiedSavedView.display_mode &&
this.unmodifiedSavedView.display_mode !== this.list.displayMode) || 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 &&
this.unmodifiedSavedView.display_fields.join(',') !== this.unmodifiedSavedView.display_fields.join(',') !==
this.activeDisplayFields.join(',')) || this.activeDisplayFields.join(',')) ||