diff --git a/plugins/view-resources/src/components/RelationsEditor.svelte b/plugins/view-resources/src/components/RelationsEditor.svelte index 3e8e182317..a4fe577bdf 100644 --- a/plugins/view-resources/src/components/RelationsEditor.svelte +++ b/plugins/view-resources/src/components/RelationsEditor.svelte @@ -60,7 +60,7 @@ object._class, { _id: object._id }, (res) => { - relationsB = res[0].$associations ?? {} + relationsB = res?.[0]?.$associations ?? {} }, { associations: associationsB.map((a) => [a._id, -1]) } )