fixed default filter

This commit is contained in:
Timo Bejan 2020-10-30 14:37:12 +02:00
parent dd343bbef3
commit cd21d490d0
2 changed files with 4 additions and 2 deletions

View File

@ -30,10 +30,10 @@ export class FiltersService {
if (availableAnnotationTypes.has(key)) {
const typeValue = dictionaryData[key];
if (typeValue.hint === true) {
filtersCopy.hint[key] = false;
filtersCopy.hint[key] = typeValue.defaultFilter;
}
if (typeValue.hint === false) {
filtersCopy.redaction[key] = false;
filtersCopy.redaction[key] = typeValue.defaultFilter;
}
}
}

View File

@ -32,4 +32,6 @@ export interface TypeValue {
*/
type?: string;
isDefaultFilter?: boolean;
virtual?: boolean;
label?: string;
}