SUPPORT-9187: null filter value for mo case
This commit is contained in:
parent
da4e0fbcb8
commit
54cc59a17a
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ import {TreeItemDto} from "../../../generated/component/model/TreeItemDto";
|
|||
export class DropdownTreeViewModelFilterValue extends Behavior {
|
||||
|
||||
public isBusinessId: boolean;
|
||||
public rootId: string;
|
||||
@AdvancedProperty()
|
||||
public separator: string;
|
||||
|
||||
|
|
@ -20,6 +21,9 @@ export class DropdownTreeViewModelFilterValue extends Behavior {
|
|||
model = treeViewComponent.cachedValue;
|
||||
}
|
||||
if (model) {
|
||||
if (this.rootId && this.rootId == (this.isBusinessId ? model.businessId : model.id)) {
|
||||
return null;
|
||||
}
|
||||
dtos.push(model);
|
||||
this.fillArray(dtos, model);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue