selections fix follow up (#1019)

This commit is contained in:
Kurt Hutten
2023-11-08 10:10:30 +11:00
committed by GitHub
parent b1668410f8
commit 604d931962
2 changed files with 4 additions and 4 deletions

View File

@ -32,11 +32,10 @@ export function useEngineConnectionSubscriptions() {
const unSubClick = engineCommandManager.subscribeTo({
event: 'select_with_point',
callback: async (engineEvent) => {
if (!context.sketchEnginePathId) return
const event = await getEventForSelectWithPoint(engineEvent, {
sketchEnginePathId: context.sketchEnginePathId,
})
send(event)
event && send(event)
},
})
return () => {