remove the created and updated fields from the view API Preview and listings if the query doesn't have them

This commit is contained in:
Gani Georgiev
2023-09-24 11:27:10 +03:00
parent d0b1c9d998
commit ff08fc0fa4
33 changed files with 46 additions and 41 deletions
+2 -2
View File
@@ -62,9 +62,9 @@
updateStoredHiddenColumns();
}
$: hasCreated = !isView || (records.length > 0 && records[0].created != "");
$: hasCreated = !isView || (records.length > 0 && typeof records[0].created != "undefined");
$: hasUpdated = !isView || (records.length > 0 && records[0].updated != "");
$: hasUpdated = !isView || (records.length > 0 && typeof records[0].updated != "undefined");
$: collumnsToHide = [].concat(
isAuth