[#1836] fixed toggle column reactivity on collection change

This commit is contained in:
Gani Georgiev
2023-02-12 12:35:49 +02:00
parent dcaacd0d28
commit 9fd6e7fca1
30 changed files with 40 additions and 40 deletions
+5 -5
View File
@@ -32,17 +32,17 @@
let hiddenColumns = [];
let collumnsToHide = [];
$: if (collection?.id) {
loadStoredHiddenColumns();
clearList();
}
$: fields = collection?.schema || [];
$: relFields = fields.filter((field) => field.type === "relation");
$: visibleFields = fields.filter((field) => !hiddenColumns.includes(field.id));
$: if (collection?.id) {
loadStoredHiddenColumns();
clearList();
}
$: if (collection?.id && sort !== -1 && filter !== -1) {
load(1);
}