address comment with hardcoded paths for nonSheetPages checks.

This commit is contained in:
Darshan
2025-10-09 17:49:53 +05:30
parent aea5e821a1
commit 2abb2bc973
@@ -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;
});