Skip to content

Commit

Permalink
fix: ensures first options are loaded only once
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikrut committed Apr 19, 2021
1 parent 4b19795 commit 75a5b04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/admin/components/forms/field-types/Relationship/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,18 @@ const Relationship: React.FC<Props> = (props) => {

if (!thirdData.hasNextPage) {
setLastFullyLoadedRelation(2);
} else {
setLastLoadedPage(2);
}
}
}
} else {
setLastLoadedPage(2);
}
}
}
} else {
setLastLoadedPage(2);
}

setHasLoadedFirstOptions(true);
Expand Down

0 comments on commit 75a5b04

Please sign in to comment.