Update document-list.component.ts

This commit is contained in:
shamoon
2026-02-22 16:02:44 -08:00
parent ff10e53958
commit 450e13ee00

View File

@@ -22,7 +22,7 @@ import {
} from '@ng-bootstrap/ng-bootstrap' } from '@ng-bootstrap/ng-bootstrap'
import { NgxBootstrapIconsModule } from 'ngx-bootstrap-icons' import { NgxBootstrapIconsModule } from 'ngx-bootstrap-icons'
import { TourNgBootstrap } from 'ngx-ui-tour-ng-bootstrap' import { TourNgBootstrap } from 'ngx-ui-tour-ng-bootstrap'
import { filter, first, map, of, Subject, switchMap, takeUntil } from 'rxjs' import { filter, first, map, Subject, switchMap, takeUntil } from 'rxjs'
import { import {
DEFAULT_DISPLAY_FIELDS, DEFAULT_DISPLAY_FIELDS,
DisplayField, DisplayField,
@@ -506,10 +506,6 @@ export class DocumentListComponent
showOnDashboard: boolean, showOnDashboard: boolean,
showInSideBar: boolean showInSideBar: boolean
) { ) {
if (!showOnDashboard && !showInSideBar) {
return of(null)
}
const dashboardViewIds = this.savedViewService.dashboardViews.map( const dashboardViewIds = this.savedViewService.dashboardViews.map(
(v) => v.id (v) => v.id
) )