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