From 82de0bf2c29a775fde2956ebf3bdad0f211e4be1 Mon Sep 17 00:00:00 2001 From: Akshat Patel <38994122+Akshat55@users.noreply.github.com> Date: Fri, 29 Nov 2024 18:51:54 -0500 Subject: [PATCH] chore: lint fix Signed-off-by: Akshat Patel <38994122+Akshat55@users.noreply.github.com> --- src/combobox/combobox.component.spec.ts | 4 ++-- src/combobox/combobox.component.ts | 12 ++++++------ src/datepicker/datepicker.stories.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/combobox/combobox.component.spec.ts b/src/combobox/combobox.component.spec.ts index feef065459..9203d24054 100644 --- a/src/combobox/combobox.component.spec.ts +++ b/src/combobox/combobox.component.spec.ts @@ -33,7 +33,7 @@ class ComboboxTest { {id: "2", content: "two", selected: false}, {id: "3", content: "three", selected: false} ]; - type = 'single'; + type = "single"; itemValueKey = undefined; model: ListItem; } @@ -207,6 +207,6 @@ describe("Combo box", () => { dropdownOption.click(); fixture.detectChanges(); - expect(wrapper.model).toEqual(['1']); + expect(wrapper.model).toEqual(["1"]); }); }); diff --git a/src/combobox/combobox.component.ts b/src/combobox/combobox.component.ts index 9291ac604b..11202d96cc 100644 --- a/src/combobox/combobox.component.ts +++ b/src/combobox/combobox.component.ts @@ -696,12 +696,12 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD const selected = this.view.getSelected(); // in case there are disabled items they should be mapped according to itemValueKey - if (this.itemValueKey && selected) { - const values = selected.map((item) => item[this.itemValueKey]); - this.propagateChangeCallback(values); - } else { - this.propagateChangeCallback(selected); - } + if (this.itemValueKey && selected) { + const values = selected.map((item) => item[this.itemValueKey]); + this.propagateChangeCallback(values); + } else { + this.propagateChangeCallback(selected); + } this.selected.emit(selected as any); this.clear.emit(event); diff --git a/src/datepicker/datepicker.stories.ts b/src/datepicker/datepicker.stories.ts index b40a3fa1c6..265a7cee63 100644 --- a/src/datepicker/datepicker.stories.ts +++ b/src/datepicker/datepicker.stories.ts @@ -168,7 +168,7 @@ Range.args = { language: "en", flatpickrOptions: { minDate: new Date("11/01/24"), - maxDate: new Date("11/30/24"), + maxDate: new Date("11/30/24") } }; Range.argTypes = {