Skip to content

Commit

Permalink
Merge pull request #4099 from marmelab/fix-ReferencearrayInput-idstog…
Browse files Browse the repository at this point in the history
…etfromstore

Fix regression in ReferenceArrayInput (idsToGetFromStore error)
  • Loading branch information
djhi authored Dec 3, 2019
2 parents 3f6ce19 + ddeeb34 commit bdb6caa
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 bdb6caa

Please sign in to comment.