0
Fork 0
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:
Juanfran 2024-03-01 09:10:40 +01:00
parent 03456dd483
commit afe00b1977

View file

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