From 8c03623f4fea01d503d6df754acd288518085bbd Mon Sep 17 00:00:00 2001 From: guillaume Date: Thu, 22 Nov 2018 15:20:31 +0100 Subject: [PATCH] fix: lint --- .../src/components/tree-select-item.component.ts | 4 ++-- src/ngx-tree-select/src/components/tree-select.component.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ngx-tree-select/src/components/tree-select-item.component.ts b/src/ngx-tree-select/src/components/tree-select-item.component.ts index 33a64f3..6403e9a 100644 --- a/src/ngx-tree-select/src/components/tree-select-item.component.ts +++ b/src/ngx-tree-select/src/components/tree-select-item.component.ts @@ -48,8 +48,8 @@ export class TreeSelectItemComponent { } public get haveChildren(): boolean { - if(this.restructureWhenChildSameName && this.item && this.item.children && this.item.children.length == 1 && this.item.text == this.item.children[0].text) - { + if (this.restructureWhenChildSameName && this.item && this.item.children + && this.item.children.length === 1 && this.item.text === this.item.children[0].text) { this.item = this.item.children[0]; } return this.item && this.item.children && this.item.children.length > 0; diff --git a/src/ngx-tree-select/src/components/tree-select.component.ts b/src/ngx-tree-select/src/components/tree-select.component.ts index 6f32957..84a7f87 100644 --- a/src/ngx-tree-select/src/components/tree-select.component.ts +++ b/src/ngx-tree-select/src/components/tree-select.component.ts @@ -66,9 +66,8 @@ export class TreeSelectComponent implements ControlValueAccessor { return this.svc.Configuration.allowParentSelection; } - @Input() - public set restructureWhenChildSameName(value: boolean){ + public set restructureWhenChildSameName(value: boolean) { this.svc.setConfiguration((opt) => opt.restructureWhenChildSameName = value, true); }