Merge pull request 'Search: loading indicator and performance note (#32)' (#72) from issue-32-search-indicator into main
This commit was merged in pull request #72.
This commit is contained in:
@@ -63,7 +63,7 @@ const PaletteTable = (() => {
|
||||
const filtered = state.filter.length > 0;
|
||||
const off = (state.page - 1) * opts.perPage;
|
||||
const url = (filtered || state.sortKey)
|
||||
? opts.endpoint + '?limit=500&offset=0'
|
||||
? opts.endpoint + '?limit=' + (opts.fetchLimit || 100) + '&offset=0'
|
||||
: opts.endpoint + '?limit=' + opts.perPage + '&offset=' + off;
|
||||
const res = await fetch(url);
|
||||
const data = await res.json();
|
||||
|
||||
Reference in New Issue
Block a user