diff --git a/src/share/shaca/entities/snote.ts b/src/share/shaca/entities/snote.ts index 37e0fb477..3ca182167 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 || []; } /**