summaryrefslogtreecommitdiff
path: root/resources/js
diff options
context:
space:
mode:
authorRichard Cissée <ric@richard-cissee.de>2022-02-26 19:23:07 +0100
committerGitHub <noreply@github.com>2022-02-26 18:23:07 +0000
commit640069c383a0e7f9043a188577ed5750402c5c76 (patch)
treeb7121f2edaeaeef0dbfa1ae76e6c446f9416bc6a /resources/js
parent158900c2b212361851fcf0964e99084458ce1b3a (diff)
downloadwebtrees-640069c383a0e7f9043a188577ed5750402c5c76.tar.gz
webtrees-640069c383a0e7f9043a188577ed5750402c5c76.tar.bz2
webtrees-640069c383a0e7f9043a188577ed5750402c5c76.zip
Fix TomSelect virtual scroll (#4236)
Diffstat (limited to 'resources/js')
-rw-r--r--resources/js/webtrees.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/js/webtrees.js b/resources/js/webtrees.js
index 883be0e305..4fb306286a 100644
--- a/resources/js/webtrees.js
+++ b/resources/js/webtrees.js
@@ -711,7 +711,9 @@
fetch(this.getUrl(query))
.then(response => response.json())
.then(json => {
- this.setNextUrl(query, json.nextUrl + '&query=' + encodeURIComponent(query));
+ if (json.nextUrl !== null) {
+ this.setNextUrl(query, json.nextUrl + '&query=' + encodeURIComponent(query));
+ }
callback(json.data);
})
.catch(callback);