RED-4718 - No "Undefined"-Option for Dossier State Filter
This commit is contained in:
parent
f249f3d71d
commit
68b8480875
@ -75,10 +75,12 @@ export class ConfigService {
|
||||
|
||||
entities?.forEach(entry => {
|
||||
entry.memberIds.forEach(f => allDistinctPeople.add(f));
|
||||
|
||||
allDistinctDossierStates.add(entry.dossierStatusId);
|
||||
if (entry.dossierStatusId) {
|
||||
allDistinctDossierStates.add(entry.dossierStatusId);
|
||||
stateToTemplateMap.set(entry.dossierStatusId, entry.dossierTemplateId);
|
||||
}
|
||||
|
||||
const stats = this._dossierStatsService.get(entry.dossierId);
|
||||
|
||||
if (!stats) {
|
||||
@ -105,7 +107,7 @@ export class ConfigService {
|
||||
id =>
|
||||
new NestedFilter({
|
||||
id: id,
|
||||
label: this._dossierStatesMapService.get(stateToTemplateMap.get(id), id).name,
|
||||
label: id ? this._dossierStatesMapService.get(stateToTemplateMap.get(id), id).name : 'Undefined',
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user