don't unnecessary loads the records list while refrishing the collections

This commit is contained in:
Gani Georgiev
2024-10-30 08:44:09 +02:00
parent 8b42941bd3
commit 39415e0f49
29 changed files with 102 additions and 102 deletions
+2 -2
View File
@@ -88,10 +88,10 @@
filter = "";
sort = "-@rowid";
updateQueryParams({ recordId: null });
normalizeSort();
updateQueryParams({ recordId: null });
// close any open collection panels
collectionUpsertPanel?.forceHide();
collectionDocsPanel?.hide();
+2 -2
View File
@@ -4,7 +4,7 @@
import SortHeader from "@/components/base/SortHeader.svelte";
import Toggler from "@/components/base/Toggler.svelte";
import RecordFieldValue from "@/components/records/RecordFieldValue.svelte";
import { collections } from "@/stores/collections";
import { collections, isCollectionsLoading } from "@/stores/collections";
import { confirm } from "@/stores/confirmation";
import { addSuccessToast } from "@/stores/toasts";
import ApiClient from "@/utils/ApiClient";
@@ -56,7 +56,7 @@
$: visibleFields = fields.filter((f) => !hiddenColumns.includes(f.id));
$: if (collection?.id && sort !== -1 && filter !== -1) {
$: if (!$isCollectionsLoading && collection?.id && sort !== -1 && filter !== -1) {
load(1);
}