fix undefined values
This commit is contained in:
parent
afe0df2931
commit
647951a29a
@ -120,7 +120,7 @@ export class DossierOverviewScreenComponent extends ListingComponent<File> imple
|
||||
this._loadEntitiesFromState();
|
||||
this.fileAttributeConfigs = this._fileAttributesService.getFileAttributeConfig(
|
||||
this.currentDossier.dossierTemplateId
|
||||
).fileAttributeConfigs;
|
||||
)?.fileAttributeConfigs;
|
||||
this.workflowConfig = {
|
||||
columnIdentifierFn: entity => entity.status,
|
||||
itemVersionFn: (entity: File) => `${entity.lastUpdated}-${entity.numberOfAnalyses}`,
|
||||
@ -232,7 +232,7 @@ export class DossierOverviewScreenComponent extends ListingComponent<File> imple
|
||||
this.addSubscription = this._appStateService.dossierTemplateChanged$.subscribe(() => {
|
||||
this.fileAttributeConfigs = this._fileAttributesService.getFileAttributeConfig(
|
||||
this.currentDossier.dossierTemplateId
|
||||
).fileAttributeConfigs;
|
||||
)?.fileAttributeConfigs;
|
||||
});
|
||||
|
||||
this.addSubscription = this._tableComponent.scrollViewport.scrolledIndexChange
|
||||
@ -241,6 +241,7 @@ export class DossierOverviewScreenComponent extends ListingComponent<File> imple
|
||||
|
||||
this.dossierAttributes = await this._dossierAttributesService.getValues(this.currentDossier);
|
||||
} catch (e) {
|
||||
console.log('Error from dossier overview screen: ', e);
|
||||
} finally {
|
||||
this._loadingService.stop();
|
||||
}
|
||||
|
||||
@ -1,19 +1,11 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {
|
||||
Colors,
|
||||
DossierTemplateControllerService,
|
||||
FileAttributesConfig,
|
||||
FileAttributesControllerService,
|
||||
IDossier,
|
||||
IFile,
|
||||
ReanalysisControllerService
|
||||
} from '@redaction/red-ui-http';
|
||||
import { Colors, IDossier, IFile, ReanalysisControllerService } from '@redaction/red-ui-http';
|
||||
import { Toaster } from '@iqser/common-ui';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { Event, NavigationEnd, ResolveStart, Router } from '@angular/router';
|
||||
import { UserService } from '@services/user.service';
|
||||
import { forkJoin, Observable, Subject } from 'rxjs';
|
||||
import { map, tap } from 'rxjs/operators';
|
||||
import { forkJoin, Observable, of, Subject } from 'rxjs';
|
||||
import { catchError, map, tap } from 'rxjs/operators';
|
||||
import { FALLBACK_COLOR, hexToRgb } from '@utils/functions';
|
||||
import { File } from '@models/file/file';
|
||||
import { Dossier } from './model/dossier';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user