Skip to content

Build your personal knowledge base with Trilium Notes

server-ts: Fix regression

Elian Doran1d1ccc8d636f
diff --git a/src/share/shaca/entities/snote.ts b/src/share/shaca/entities/snote.ts
index 37e0fb477a..3ca182167f 100644
--- a/src/share/shaca/entities/snote.ts
+++ b/src/share/shaca/entities/snote.ts
@@ -211,10 +211,10 @@ class SNote extends AbstractShacaEntity {
}
if (!this.__inheritableAttributeCache) {
- return this.__getAttributes(path); // will refresh also this.__inheritableAttributeCache
- } else {
- return this.__inheritableAttributeCache;
+ this.__getAttributes(path); // will refresh also this.__inheritableAttributeCache
}
+
+ return this.__inheritableAttributeCache || [];
}
/**