mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-24 15:00:25 +02:00
delay the first chart init at the end of the loop to avoid too many animations happening at once
This commit is contained in:
1 parent
8ec80c9828
commit
17628e554c
3 files changed
+3
-1
No files matched your search
@@ -71,6 +71,7 @@ export function logsChart(logsSettings) {
|
||||
initChart(el, [timestamps, totals], logsSettings);
|
||||
} catch (err) {
|
||||
if (!err?.isAbort) {
|
||||
clearTimeout(placeloderChartTimeoutId);
|
||||
logsSettings.isChartLoading = false;
|
||||
// only log to avoid showing multiple errors with the logs listing
|
||||
// app.checkApiError(err)
|
||||
|
||||
@@ -92,6 +92,7 @@ export function logsList(logsSettings) {
|
||||
logsSettings.hasListItems = data.logs.length > 0;
|
||||
|
||||
if (!logsSettings.isFirstLoadReady) {
|
||||
await new Promise((r) => setTimeout(r, 0));
|
||||
logsSettings.isFirstLoadReady = true;
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in new issue
Block a user