From afe00b197756d38fe3ab6449c088a36491a6eb20 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Fri, 1 Mar 2024 09:10:40 +0100 Subject: [PATCH] fix: null selection --- libs/plugins-runtime/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/plugins-runtime/src/index.ts b/libs/plugins-runtime/src/index.ts index 76db5d9..c604ed2 100644 --- a/libs/plugins-runtime/src/index.ts +++ b/libs/plugins-runtime/src/index.ts @@ -39,6 +39,6 @@ export function initialize(api: any) { api.addListener('plugin-selection', 'selection', (selection: any) => { console.log('Selection Changed:', selection); - setSelection(selection.linked_map.head?.uuid); + setSelection(selection?.linked_map?.head?.uuid); }); }