Skip to content

Commit

Permalink
Update libs/ui/select/brain/src/lib/brn-select.service.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Robin Goetz <[email protected]>
  • Loading branch information
elite-benni and goetzrobin committed Jun 15, 2024
1 parent 45749cf commit a637255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ui/select/brain/src/lib/brn-select.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class BrnSelectService {
const options = this._possibleOptions();

if (value === null || value === undefined) {
const nullOrUndefinedOption = options.find((o) => o?.value === value);
const nullOrUndefinedOption = options.find((o) => o && o.value === value);
if (!nullOrUndefinedOption) {
this.state.update((state) => ({
...state,
Expand Down

0 comments on commit a637255

Please sign in to comment.