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); }); }