remove erroneous .off('mutations')

This commit is contained in:
Ewout Stortenbeker 2023-01-05 20:35:23 +01:00
parent f96f3b2327
commit d0c2eadedc

View file

@ -463,7 +463,7 @@ export class LiveDataProxy {
};
localMutationsEmitter.on('mutations', mutationsHandler);
const stop = () => {
localMutationsEmitter.off('mutations').off('mutations', mutationsHandler);
localMutationsEmitter.off('mutations', mutationsHandler);
clientSubscriptions.splice(clientSubscriptions.findIndex(cs => cs.stop === stop), 1);
};
clientSubscriptions.push({ target, stop });