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 {
|
export class DropdownTreeViewModelFilterValue extends Behavior {
|
||||||
|
|
||||||
public isBusinessId: boolean;
|
public isBusinessId: boolean;
|
||||||
|
public rootId: string;
|
||||||
@AdvancedProperty()
|
@AdvancedProperty()
|
||||||
public separator: string;
|
public separator: string;
|
||||||
|
|
||||||
|
|
@ -20,6 +21,9 @@ export class DropdownTreeViewModelFilterValue extends Behavior {
|
||||||
model = treeViewComponent.cachedValue;
|
model = treeViewComponent.cachedValue;
|
||||||
}
|
}
|
||||||
if (model) {
|
if (model) {
|
||||||
|
if (this.rootId && this.rootId == (this.isBusinessId ? model.businessId : model.id)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
dtos.push(model);
|
dtos.push(model);
|
||||||
this.fillArray(dtos, model);
|
this.fillArray(dtos, model);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue