mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
address comment with hardcoded paths for nonSheetPages checks.
This commit is contained in:
+6
-1
@@ -48,7 +48,12 @@
|
||||
});
|
||||
|
||||
const nonSheetPages = $derived.by(() => {
|
||||
const endings = ['table-[table]', 'table-[table]/columns', 'table-[table]/indexes'];
|
||||
const field = terminology.field.lower.plural;
|
||||
const entityType = terminology.entity.lower.singular;
|
||||
|
||||
const resourceSeg = `${entityType}-[${entityType}]`;
|
||||
|
||||
const endings = [resourceSeg, `${resourceSeg}/${field}`, `${resourceSeg}/indexes`];
|
||||
const isSpreadsheetPage = endings.some((end) => page.route.id?.endsWith(end));
|
||||
return !isSpreadsheetPage;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user