Merge pull request #805 from mirumee/SALEOR-1482-fix-single-autocomplete-select

Update condition for falsy values in Single autocomplete select field to also include null
This commit is contained in:
mmarkusik 2020-10-30 10:43:36 +01:00 committed by GitHub
commit ddd988191c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,7 +150,7 @@ const SingleAutocompleteSelectFieldComponent: React.FC<SingleAutocompleteSelectF
}; };
// fix for bug where input value is returned from debounce as id instead of label // fix for bug where input value is returned from debounce as id instead of label
if (value === inputValue && inputValue !== "") { if (value === inputValue && !!inputValue) {
ensureProperValues(); ensureProperValues();
} }