Clean code

This commit is contained in:
Adria Navarro 2023-09-25 10:17:26 +02:00
parent 825f1c639e
commit 10fdd696c6
1 changed files with 5 additions and 7 deletions

View File

@ -77,13 +77,11 @@
$fetch.loaded &&
!Object.keys($fetch.query?.string || {}).length &&
!$fetch.hasNextPage
if (!allRowsFetched) {
// Don't request until we have the primary display
if (primaryDisplay) {
fetch.update({
query: { string: { [primaryDisplay]: searchTerm } },
})
}
// Don't request until we have the primary display
if (!allRowsFetched && primaryDisplay) {
fetch.update({
query: { string: { [primaryDisplay]: searchTerm } },
})
}
}