Skip to content

Commit

Permalink
Add back undefined checks for action/value completionObject
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Mar 1, 2023
1 parent 349d9a2 commit 0dc0b0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/src/autocomplete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export function useAutocomplete( {
obj !== null &&
typeof obj === 'object' &&
'action' in obj &&
'value' in obj
obj.action !== undefined &&
'value' in obj &&
obj.value !== undefined
);
};

Expand Down

0 comments on commit 0dc0b0f

Please sign in to comment.