From 1d1ccc8d636ffa8604df82173c39871cdc83cb8a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 17 Apr 2024 22:49:41 +0300 Subject: [PATCH] server-ts: Fix regression --- src/share/shaca/entities/snote.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 || []; } /**