Skip to content

Commit 16e333c

Browse files
fix(grid): add nullish for set items
1 parent d2a4c83 commit 16e333c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: projects/angular/components/ui-grid/src/filters/ui-grid-dropdown-filter.directive.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export class UiGridDropdownFilterDirective<T> extends UiGridFilterDirective<T> i
5353
*/
5454
@Input()
5555
set items(value: IDropdownOption[]) {
56-
this._items = value;
57-
this.suggestItems = value.map((item, idx) => ({
56+
this._items = value ?? [];
57+
this.suggestItems = this._items.map((item, idx) => ({
5858
id: idx + 1,
5959
text: item.label,
6060
data: item.value,

0 commit comments

Comments
 (0)