Skip to content

Commit

Permalink
fix(form): fix issue where ref.input auto complete was disabled initi…
Browse files Browse the repository at this point in the history
…ally
  • Loading branch information
skogsmaskin authored and rexxars committed Sep 14, 2022
1 parent 83bd89c commit 949dba4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function useReferenceInfo(
// workaround for a "bug" with useMemoObservable that doesn't
// return the initial value upon resubscription
const previousId = usePrevious(id, id)
if (previousId !== id) {
if (id && previousId !== id) {
return INITIAL_LOADING_STATE
}
return referenceInfo
Expand Down

0 comments on commit 949dba4

Please sign in to comment.