Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e7efe commit 33aa00fCopy full SHA for 33aa00f
libs/core/src/lib/events.ts
@@ -191,8 +191,8 @@ export function createEvents(store: NgtSignalStore<NgtState>) {
191
.flatMap(handleRaycast)
192
// Sort by event priority and distance
193
.sort((a, b) => {
194
- const aState = getLocalState(a.object).store.get();
195
- const bState = getLocalState(b.object).store.get();
+ const aState = getLocalState(a.object).store?.get();
+ const bState = getLocalState(b.object).store?.get();
196
if (!aState || !bState) return a.distance - b.distance;
197
return bState.events.priority - aState.events.priority || a.distance - b.distance;
198
})
0 commit comments