mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-06 14:50:21 -05:00
fix: null selection
This commit is contained in:
parent
03456dd483
commit
afe00b1977
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue