feat(book/table): hide promoted attributes

This commit is contained in:
Elian Doran
2025-06-25 19:25:01 +03:00
parent dcb4ebe5d9
commit 4a22e3d2d4
2 changed files with 47 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
// the order of attributes is important as well
ownedAttributes.sort((a, b) => a.position - b.position);
if (promotedDefAttrs.length === 0) {
if (promotedDefAttrs.length === 0 || note.getLabelValue("viewType") === "table") {
this.toggleInt(false);
return;
}