From 68c94d8ce887b998c6a5f3eb446fbadb6cf291fe Mon Sep 17 00:00:00 2001 From: Shaelyn Tolkamp Date: Thu, 1 Feb 2024 15:43:54 -0800 Subject: [PATCH 1/2] Add doc default sort to date and name and remove uncategorized doc tab. --- ...roject-notification-documents.component.ts | 1 - .../project-document-resolver.services.ts | 29 +- .../project-documents.component.html | 67 ++--- .../project-documents.component.scss | 4 - .../project-documents.component.ts | 249 ++---------------- .../table-document-params-object.ts | 4 - src/app/shared/utils/constants.ts | 3 +- .../utils/table-document-template-utils.ts | 22 +- 8 files changed, 51 insertions(+), 328 deletions(-) diff --git a/src/app/project-notification/documents/project-notification-documents.component.ts b/src/app/project-notification/documents/project-notification-documents.component.ts index cb3799231..9cb866bfe 100644 --- a/src/app/project-notification/documents/project-notification-documents.component.ts +++ b/src/app/project-notification/documents/project-notification-documents.component.ts @@ -70,7 +70,6 @@ export class ProjectNotificationDocumentsComponent implements OnInit, OnDestroy public selectedCount = { categorized: 0, - uncategorized: 0, total: 0, }; public currentProject; diff --git a/src/app/project/project-documents/project-document-resolver.services.ts b/src/app/project/project-documents/project-document-resolver.services.ts index 91a4b7a0d..cd4220464 100644 --- a/src/app/project/project-documents/project-document-resolver.services.ts +++ b/src/app/project/project-documents/project-document-resolver.services.ts @@ -1,7 +1,6 @@ import { Injectable } from '@angular/core'; import { Resolve, ActivatedRouteSnapshot } from '@angular/router'; -import { Observable, forkJoin } from 'rxjs'; -import { map } from 'rxjs/operators'; +import { Observable } from 'rxjs'; import 'rxjs/add/operator/switchMap'; @@ -28,7 +27,7 @@ export class DocumentsResolver implements Resolve> { const params = this.storageService.state.projectDocumentTableParams || route.params; const pageNum = params.pageNum ? params.pageNum : 1; const pageSize = params.pageSize ? params.pageSize : 10; - const sortBy = params.sortBy ? params.sortBy : '-datePosted'; + const sortBy = params.sortBy ? params.sortBy : '-datePosted,+displayName'; const keywords = params.keywords || ''; const milestones: any[] = []; @@ -77,30 +76,12 @@ export class DocumentsResolver implements Resolve> { '' ); - const uncategorizedObs = this.searchService.getSearchResults( - keywords, - 'Document', - [ - { name: 'project', value: projectId }, - { name: 'categorized', value: false } - ], - pageNum, - pageSize, - sortBy, - { documentSource: 'PROJECT' }, - true, - this.filterForAPI, - '' - ); - - const join = forkJoin(categorizedObs, uncategorizedObs).pipe(map(responses => ( + return categorizedObs.map(res => ( { - categorized: responses[0][0], - uncategorized: responses[1][0], + categorized: res[0], } - ))); + )); - return join; } paramsToCollectionFilter(params, name, collection, identifyBy) { diff --git a/src/app/project/project-documents/project-documents.component.html b/src/app/project/project-documents/project-documents.component.html index d069128c3..658098552 100644 --- a/src/app/project/project-documents/project-documents.component.html +++ b/src/app/project/project-documents/project-documents.component.html @@ -298,51 +298,28 @@

+ -
-
- - - - - - - - - - -
- Uncategorized Documents ({{this.tableParams.totalListItemsUncategorized}} {{getResultTerm(this.tableParams.totalListItemsUncategorized)}} found) - help -
-
- - - - -
-
-
+
+
+ +
- -
-
-
-
+
+

No Documents found.

+
+
+
+
+
+
+ +
\ No newline at end of file diff --git a/src/app/project/project-documents/project-documents.component.scss b/src/app/project/project-documents/project-documents.component.scss index 358ee6231..fa4e6073e 100644 --- a/src/app/project/project-documents/project-documents.component.scss +++ b/src/app/project/project-documents/project-documents.component.scss @@ -81,10 +81,6 @@ input[type="text"] { } } -.content-container { - margin-top: 50px; -} - .advanced-search { position: relative; diff --git a/src/app/project/project-documents/project-documents.component.ts b/src/app/project/project-documents/project-documents.component.ts index f99c8690b..3c6b70dbf 100644 --- a/src/app/project/project-documents/project-documents.component.ts +++ b/src/app/project/project-documents/project-documents.component.ts @@ -46,9 +46,7 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { private activeLegislationYear: number; public categorizedDocsCount = 0; - public uncategorizedDocsCount = 0; public categorizedDocs: Document[] = []; - public uncategorizedDocs: Document[] = []; public milestones: any[] = []; public authors: any[] = []; @@ -87,7 +85,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { }; public categorizedDocumentTableData: TableObject; - public uncategorizedDocumentTableData: TableObject; public documentTableColumns: any[] = [ { name: 'select_all_box', @@ -103,22 +100,22 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { { name: 'Status', value: 'status', - width: '10%' + width: '7%' }, { name: 'Date', value: 'datePosted', - width: '12%' + width: '14%' }, { name: 'Type', value: 'type', - width: '12%' + width: '14%' }, { name: 'Milestone', value: 'milestone', - width: '11%' + width: '14%' }, { name: 'Legislation', @@ -128,7 +125,7 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { { name: 'Feature', value: 'isFeatured', - width: '10%' + width: '6%' } ]; @@ -136,7 +133,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { public selectedCount = { categorized: 0, - uncategorized: 0, total: 0, }; public currentProject; @@ -194,11 +190,7 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { ); if (this.tableParams.sortByCategorized === '') { - this.tableParams.sortByCategorized = '-datePosted'; - } - - if (this.tableParams.sortByUncategorized === '') { - this.tableParams.sortByUncategorized = '-datePosted'; + this.tableParams.sortByCategorized = '-datePosted,+displayName'; } if (params.keywords !== undefined) { @@ -225,22 +217,14 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { }) .takeUntil(this.ngUnsubscribe) .subscribe(({ documents }: any) => { - if (documents.categorized && documents.uncategorized) { - if (documents.categorized.data && documents.categorized.data.meta.length > 0) { - this.tableParams.totalListItemsCategorized = documents.categorized.data.meta[0].searchResultsTotal; - this.categorizedDocs = documents.categorized.data.searchResults; - } else { - this.tableParams.totalListItemsCategorized = 0; - this.categorizedDocs = []; - } - - if (documents.uncategorized.data.meta && documents.uncategorized.data.meta.length > 0) { - this.tableParams.totalListItemsUncategorized = documents.uncategorized.data.meta[0].searchResultsTotal; - this.uncategorizedDocs = documents.uncategorized.data.searchResults; - } else { - this.tableParams.totalListItemsUncategorized = 0; - this.uncategorizedDocs = []; - } + if (documents.categorized) { + if (documents.categorized.data && documents.categorized.data.meta.length > 0) { + this.tableParams.totalListItemsCategorized = documents.categorized.data.meta[0].searchResultsTotal; + this.categorizedDocs = documents.categorized.data.searchResults; + } else { + this.tableParams.totalListItemsCategorized = 0; + this.categorizedDocs = []; + } this.setRowData(); @@ -280,18 +264,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { } }); } - - if (this.uncategorizedDocumentTableData) { - this.uncategorizedDocumentTableData.data.map(item => { - if (item.checkbox === true) { - this.createRowCopy(item); - this.openSnackBar( - 'A PUBLIC link to this document has been copied.', - 'Close' - ); - } - }); - } break; case 'selectAll': let someSelected = false; @@ -307,21 +279,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { }); } - if (this.uncategorizedDocumentTableData && this.currentTab === Constants.documentTypes.UNCATEGORIZED) { - this.uncategorizedDocumentTableData.data.map(item => { - if (item.checkbox === true) { - someSelected = true; - } - }); - this.uncategorizedDocumentTableData.data.map(item => { - item.checkbox = !someSelected; - }); - - this.selectedCount.total = someSelected - ? 0 - : this.uncategorizedDocumentTableData.data.length; - } - this.selectedCount.total = someSelected ? 0 : this.categorizedDocumentTableData.data.length; @@ -342,17 +299,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { } }); } - - if (this.uncategorizedDocumentTableData) { - this.uncategorizedDocumentTableData.data.map(item => { - if (item.checkbox === true) { - selectedDocs.push( - this.uncategorizedDocs.filter(d => d._id === item._id)[0] - ); - } - }); - } - // Store and send to the edit page. this.storageService.state.selectedDocs = selectedDocs; // Set labels if doc size === 1 @@ -383,17 +329,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { }); } - if (this.uncategorizedDocumentTableData && this.currentTab === Constants.documentTypes.UNCATEGORIZED) { - this.uncategorizedDocumentTableData.data.map(item => { - if (item.checkbox === true) { - promises.push( - this.api.downloadDocument( - this.uncategorizedDocs.filter(d => d._id === item._id)[0] - ) - ); - } - }); - } return Promise.all(promises).then(() => { console.log('Download initiated for file(s)'); @@ -439,13 +374,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { }); } - if (this.uncategorizedDocumentTableData) { - this.uncategorizedDocumentTableData.data.map(item => { - if (item.checkbox && !item.read.includes('public')) { - observables.push(this.documentService.publish(item._id)); - } - }); - } forkJoin(observables).subscribe( () => {}, @@ -493,13 +421,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { }); } - if (this.uncategorizedDocumentTableData) { - this.uncategorizedDocumentTableData.data.map(item => { - if (item.checkbox && item.read.includes('public')) { - observables.push(this.documentService.unPublish(item._id)); - } - }); - } forkJoin(observables).subscribe( () => {}, @@ -551,16 +472,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { }); } - if (this.uncategorizedDocumentTableData) { - this.uncategorizedDocumentTableData.data.map(item => { - if (item.checkbox === true) { - itemsToDelete.push({ - promise: this.documentService.delete(item).toPromise(), - item: item - }); - } - }); - } this.loading = false; @@ -584,17 +495,13 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { params['ms'] = new Date().getMilliseconds(); params['dataset'] = this.terms.dataset; params['currentPageCategorized'] = this.tableParams.currentPageCategorized = 1; - params['currentPageUncategorized'] = this.tableParams.currentPageUncategorized = 1; params['sortByCategorized'] = this.tableParams.sortByCategorized; - params['sortByUncategorized'] = this.tableParams.sortByUncategorized; params['keywords'] = this.tableParams.keywords; if (numItems === 'max') { params['pageSizeCategorized'] = this.tableParams.totalListItemsCategorized; - params['pageSizeUncategorized'] = this.tableParams.totalListItemsUncategorized; } else { params['pageSizeCategorized'] = this.tableParams.pageSizeCategorized = numItems; - params['pageSizeUncategorized'] = this.tableParams.pageSizeUncategorized = numItems; } this.router.navigate([ @@ -616,14 +523,11 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { params['ms'] = new Date().getMilliseconds(); params['dataset'] = this.terms.dataset; params['currentPageCategorized'] = this.tableParams.currentPageCategorized = 1; - params['currentPageUncategorized'] = this.tableParams.currentPageUncategorized = 1; - params['sortByCategorized'] = this.tableParams.sortByCategorized = '-datePosted'; - params['sortByUncategorized'] = this.tableParams.sortByUncategorized = '-datePosted'; + params['sortByCategorized'] = this.tableParams.sortByCategorized = '-datePosted,+displayName'; params['keywords'] = this.utils.encodeParams( (this.tableParams.keywords = this.tableParams.keywords || '') ); params['pageSizeCategorized'] = this.tableParams.pageSizeCategorized; - params['pageSizeUncategorized'] = this.tableParams.totalListItemsUncategorized; this.setParamsFromFilters(params); @@ -677,42 +581,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { ); } - if (this.uncategorizedDocs && this.uncategorizedDocs.length > 0) { - const documentList: any[] = []; - - this.uncategorizedDocs.forEach(document => { - documentList.push({ - displayName: document.displayName, - documentFileName: document.documentFileName, - datePosted: document.datePosted, - status: document.read.includes('public') - ? 'Published' - : 'Not Published', - type: document.type, - milestone: document.milestone, - legislation: document.legislation, - _id: document._id, - project: document.project, - read: document.read - }); - }); - - const uncategorizedTableParams: TableParamsObject = new TableParamsObject( - this.tableParams.pageSizeUncategorized, - this.tableParams.currentPageUncategorized, - this.tableParams.totalListItemsUncategorized, - this.tableParams.sortByUncategorized, - this.tableParams.keywords, - this.tableParams.filter - ); - - this.uncategorizedDocumentTableData = new TableObject( - DocumentTableRowsComponent, - documentList, - uncategorizedTableParams, - this.activeLegislationYear, - ); - } } setColumnSort(docType, column) { @@ -726,14 +594,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { } else { this.tableParams.sortByCategorized = '+' + column; } - } else if (docType === Constants.documentTypes.UNCATEGORIZED) { - currentPage = this.tableParams.currentPageUncategorized; - - if (this.tableParams.sortByUncategorized.charAt(0) === '+') { - this.tableParams.sortByUncategorized = '-' + column; - } else { - this.tableParams.sortByUncategorized = '+' + column; - } } this.getPaginatedDocs(docType, currentPage); @@ -756,7 +616,7 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { this.activeLegislationYear = changeEvent.activeLegislationYear; this.selectedCount[documentType] = changeEvent.count; // Accessing on a keyed index so that the constants can be used. - this.selectedCount.total = this.selectedCount[Constants.documentTypes.CATEGORIZED] + this.selectedCount[Constants.documentTypes.UNCATEGORIZED]; + this.selectedCount.total = this.selectedCount[Constants.documentTypes.CATEGORIZED]; this.setPublishUnpublish(); } @@ -778,21 +638,6 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { } } - if (this.uncategorizedDocumentTableData) { - for (let document of this.uncategorizedDocumentTableData.data) { - if (document.checkbox) { - if (document.read.includes('public')) { - this.canUnpublish = true; - } else { - this.canPublish = true; - } - } - - if (this.canPublish && this.canUnpublish) { - return; - } - } - } } paramsToCollectionFilters(params, name, collection, identifyBy) { @@ -974,11 +819,8 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { this.categorizedDocs = res[0].data.searchResults; this.tableDocumentTemplateUtils.updateUrl( this.tableParams.sortByCategorized, - this.tableParams.sortByUncategorized, this.tableParams.currentPageCategorized, - this.tableParams.currentPageUncategorized, this.categorizedDocumentTableData ? this.categorizedDocumentTableData.paginationData.pageSize : 0, - this.uncategorizedDocumentTableData ? this.uncategorizedDocumentTableData.paginationData.pageSize : 0, this.filterForURL, this.tableParams.keywords || '' ); @@ -987,44 +829,7 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { this.loading = false; this._changeDetectionRef.detectChanges(); }); - } else if (docType === Constants.documentTypes.UNCATEGORIZED) { - this.tableParams.pageSizeUncategorized = this.uncategorizedDocumentTableData ? this.uncategorizedDocumentTableData.paginationData.pageSize : 0; - this.searchService - .getSearchResults( - this.tableParams.keywords || '', - 'Document', - [ - { name: 'project', value: this.currentProject._id }, - { name: 'categorized', value: false } - ], - pageNumber, - this.uncategorizedDocumentTableData ? this.uncategorizedDocumentTableData.paginationData.pageSize : 0, - this.tableParams.sortByUncategorized, - { documentSource: 'PROJECT' }, - true, - this.filterForAPI, - '' - ) - .takeUntil(this.ngUnsubscribe) - .subscribe((res: any) => { - this.tableParams.totalListItemsUncategorized = res[0].data.meta[0].searchResultsTotal; - this.uncategorizedDocs = res[0].data.searchResults; - this.tableDocumentTemplateUtils.updateUrl( - this.tableParams.sortByCategorized, - this.tableParams.sortByUncategorized, - this.tableParams.currentPageCategorized, - this.tableParams.currentPageUncategorized, - this.categorizedDocumentTableData ? this.categorizedDocumentTableData.paginationData.pageSize : 0, - this.uncategorizedDocumentTableData ? this.uncategorizedDocumentTableData.paginationData.pageSize : 0, - this.filterForURL, - this.tableParams.keywords || '' - ); - - this.setRowData(); - this.loading = false; - this._changeDetectionRef.detectChanges(); - }); - } + } } // Compares selected options when a dropdown is grouped by legislation. @@ -1061,15 +866,13 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { } /** - * Groups documents into categorized and uncategorized. + * Groups documents into categorized. * * @param documents Array of documents. */ public groupDocuments(documents: any[]): void { documents.forEach(document => { - if (!document.milestone || !document.documentType || !document.documentAuthorType) { - this.uncategorizedDocs.push(document); - } else { + if (document.milestone && document.documentType && document.documentAuthorType) { this.categorizedDocs.push(document); } }); @@ -1089,24 +892,12 @@ export class ProjectDocumentsComponent implements OnInit, OnDestroy { public onPageLimitClick(pageLimit: number | string) { if (pageLimit === 'all') { - this.tableParams.pageSizeCategorized = Math.max(this.tableParams.totalListItemsCategorized, this.tableParams.totalListItemsUncategorized); - } else { - this.tableParams.pageSizeUncategorized = pageLimit as number; + this.tableParams.pageSizeCategorized = this.tableParams.totalListItemsCategorized; } this.onSubmit(); } - public onTabChange(_event) { - this.currentTab = this.currentTab === Constants.documentTypes.CATEGORIZED ? Constants.documentTypes.UNCATEGORIZED : Constants.documentTypes.CATEGORIZED; - - if (this.uncategorizedDocumentTableData) { - this.uncategorizedDocumentTableData.extraData = this.activeLegislationYear; - } - if (this.categorizedDocumentTableData) { - this.categorizedDocumentTableData.extraData = this.activeLegislationYear; - } - } public getResultTerm(count) { if (count === 1) { diff --git a/src/app/shared/components/table-template/table-document-params-object.ts b/src/app/shared/components/table-template/table-document-params-object.ts index abffe0c96..20f4a0fa7 100644 --- a/src/app/shared/components/table-template/table-document-params-object.ts +++ b/src/app/shared/components/table-template/table-document-params-object.ts @@ -3,13 +3,9 @@ import { Constants } from 'app/shared/utils/constants'; export class TableDocumentParamsObject { constructor( public pageSizeCategorized: number = Constants.tableDefaults.DEFAULT_PAGE_SIZE, - public pageSizeUncategorized: number = Constants.tableDefaults.DEFAULT_PAGE_SIZE, public currentPageCategorized: number = Constants.tableDefaults.DEFAULT_CURRENT_PAGE, - public currentPageUncategorized: number = Constants.tableDefaults.DEFAULT_CURRENT_PAGE, public totalListItemsCategorized: number = 0, - public totalListItemsUncategorized: number = 0, public sortByCategorized: string = Constants.tableDefaults.DEFAULT_SORT_BY, - public sortByUncategorized: string = Constants.tableDefaults.DEFAULT_SORT_BY, public keywords: string = '', public filter: any = {} ) { } diff --git a/src/app/shared/utils/constants.ts b/src/app/shared/utils/constants.ts index 4c8054158..72a445b0e 100644 --- a/src/app/shared/utils/constants.ts +++ b/src/app/shared/utils/constants.ts @@ -98,8 +98,7 @@ export class Constants { ]; public static readonly documentTypes = { - CATEGORIZED: 'categorized', - UNCATEGORIZED: 'uncategorized', + CATEGORIZED: 'categorized' }; public static readonly buildToNature: BuildNature[] = [ diff --git a/src/app/shared/utils/table-document-template-utils.ts b/src/app/shared/utils/table-document-template-utils.ts index a0dfe87da..0ff301c32 100644 --- a/src/app/shared/utils/table-document-template-utils.ts +++ b/src/app/shared/utils/table-document-template-utils.ts @@ -11,12 +11,12 @@ export class TableDocumentTemplateUtils { private router: Router ) { } - public updateUrl(sortByCategorized, sortByUncategorized, currentPageCategorized, currentPageUncategorized, pageSizeCategorized, pageSizeUncategorized, filter = null, keywords = '') { + public updateUrl(sortByCategorized, currentPageCategorized, pageSizeCategorized, filter = null, keywords = '') { let currentUrl = this.router.url; currentUrl = (this.platformLocation as any).getBaseHrefFromDOM() + currentUrl.slice(1); currentUrl = currentUrl.split(';')[0]; - currentUrl += `;currentPageCategorized=${currentPageCategorized};currentPageUncategorized=${currentPageUncategorized};pageSizeCategorized=${pageSizeCategorized};pageSizeUncategorized=${pageSizeUncategorized}`; + currentUrl += `;currentPageCategorized=${currentPageCategorized};pageSizeCategorized=${pageSizeCategorized}`; if (keywords !== '') { currentUrl += `;keywords=${keywords}`; } @@ -24,10 +24,6 @@ export class TableDocumentTemplateUtils { currentUrl += `;sortByCategorized=${sortByCategorized}`; } - if (sortByUncategorized !== '' && sortByUncategorized !== null) { - currentUrl += `;sortByUncategorized=${sortByUncategorized}`; - } - if (filter !== null && filter !== {}) { Object.keys(filter).forEach(key => { if (filter[key] === true || filter[key] === false) { @@ -48,19 +44,13 @@ export class TableDocumentTemplateUtils { public getParamsFromUrl(params, filter = null, defaultPageSize = null, filterFieldList = []) { let pageSizeCategorized = +Constants.tableDefaults.DEFAULT_PAGE_SIZE; - let pageSizeUncategorized = +Constants.tableDefaults.DEFAULT_PAGE_SIZE; if (defaultPageSize !== null) { pageSizeCategorized = +defaultPageSize; - pageSizeUncategorized = +defaultPageSize; } else if (params.pageSizeCategorized) { pageSizeCategorized = +params.pageSizeCategorized; - } else if (params.pageSizeUncategorized) { - pageSizeUncategorized = +params.pageSizeUncategorized; } let currentPageCategorized = params.currentPageCategorized ? +params.currentPageCategorized : +Constants.tableDefaults.DEFAULT_CURRENT_PAGE; - let currentPageUncategorized = params.currentPageUncategorized ? +params.currentPageUncategorized : +Constants.tableDefaults.DEFAULT_CURRENT_PAGE; let sortByCategorized = params.sortByCategorized ? params.sortByCategorized : Constants.tableDefaults.DEFAULT_SORT_BY; - let sortByUncategorized = params.sortByUncategorized ? params.sortByUncategorized : Constants.tableDefaults.DEFAULT_SORT_BY; let keywords = params.keywords ? params.keywords : Constants.tableDefaults.DEFAULT_KEYWORDS; if (filter == null) { @@ -72,17 +62,13 @@ export class TableDocumentTemplateUtils { } }); - this.updateUrl(sortByCategorized, sortByUncategorized, currentPageCategorized, currentPageUncategorized, pageSizeCategorized, pageSizeUncategorized, filter, keywords); + this.updateUrl(sortByCategorized, currentPageCategorized, pageSizeCategorized, filter, keywords); return new TableDocumentParamsObject( pageSizeCategorized, - pageSizeUncategorized, currentPageCategorized, - currentPageUncategorized, - 0, 0, sortByCategorized, - sortByUncategorized, keywords, filter ); @@ -91,8 +77,6 @@ export class TableDocumentTemplateUtils { public updateTableParams(documentType: string, tableParams: TableDocumentParamsObject, pageNumber: number) { if (documentType === Constants.documentTypes.CATEGORIZED) { tableParams.currentPageCategorized = pageNumber; - } else if (documentType === Constants.documentTypes.UNCATEGORIZED) { - tableParams.currentPageUncategorized = pageNumber; } return tableParams; From 8934c05a685570bda9e956d16c292a1fb8132049 Mon Sep 17 00:00:00 2001 From: Shaelyn Tolkamp Date: Mon, 5 Feb 2024 15:10:13 -0800 Subject: [PATCH 2/2] Empty Commit