Skip to content

Commit 5615591

Browse files
committed
fix: select correct current
1 parent 508e7ed commit 5615591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GEOComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ GEOComp = withMethodExposing(GEOComp, [
404404
description: "Return the last event",
405405
},
406406
execute: async (comp: any, params: any) => {
407-
return comp.exposingValues.events['current'] || {}
407+
return comp.exposingValues.events?.current ? comp.exposingValues.events[comp.exposingValues.events.current] : {}
408408
}
409409
},
410410
{

0 commit comments

Comments
 (0)