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 53f81f2 commit a5dfa49Copy full SHA for a5dfa49
libs/core/src/lib/instance.ts
@@ -136,7 +136,7 @@ export function prepare<TInstance extends NgtAnyRecord = NgtAnyRecord>(
136
return () => {
137
const iS = getInstanceState(instance) as NgtInstanceState;
138
if (iS) {
139
- delete iS.handlers[eventName];
+ iS.handlers && delete iS.handlers[eventName];
140
iS.eventCount -= 1;
141
}
142
};
0 commit comments