From e8d9748c7a46b59a255146216c25b3c74af11f4a Mon Sep 17 00:00:00 2001 From: Matthieu Fesselier <matthieu.fesselier@gmail.com> Date: Tue, 7 Jul 2020 15:40:53 +0200 Subject: [PATCH] bugfix: error with reactivity on POST --- src/libs/store/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/store/store.ts b/src/libs/store/store.ts index a342af52..ea2ddc95 100644 --- a/src/libs/store/store.ts +++ b/src/libs/store/store.ts @@ -191,7 +191,7 @@ export class Store { */ async getNestedResources(resource: object, id: string) { const cachedResource = store.get(id); - if (!cachedResource) return []; + if (!cachedResource || cachedResource.isContainer()) return []; let nestedProperties:any[] = []; const excludeKeys = ['@context']; for (let p of Object.keys(resource)) { -- GitLab