Skip to content

Commit

Permalink
Fix regression in ReferencearrayInput (idsToGetFromStore error)
Browse files Browse the repository at this point in the history
Closes #4090
  • Loading branch information
fzaninotto committed Dec 2, 2019
1 parent dcf1d6e commit ddeeb34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const useReferenceArrayInputController = ({
const newIdsToFetch = difference(input.value, inputValue.current);
if (newIdsToFetch.length > 0) {
setIdsToFetch(newIdsToFetch);
setIdsToGetFromStore(inputValue.current);
setIdsToGetFromStore(inputValue.current || []);
}
inputValue.current = input.value;
}, [input.value, setIdsToFetch]);
Expand Down

0 comments on commit ddeeb34

Please sign in to comment.