Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Akshat Patel <[email protected]>
  • Loading branch information
Akshat55 committed Nov 29, 2024
1 parent 24ffbfe commit 82de0bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/combobox/combobox.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -207,6 +207,6 @@ describe("Combo box", () => {
dropdownOption.click();
fixture.detectChanges();

expect(wrapper.model).toEqual(['1']);
expect(wrapper.model).toEqual(["1"]);
});
});
12 changes: 6 additions & 6 deletions src/combobox/combobox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/datepicker/datepicker.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 82de0bf

Please sign in to comment.