This commit is contained in:
parent
1434036b42
commit
2a62c3d3ac
@ -209,7 +209,7 @@ export abstract class Query {
|
|||||||
oldKey = undefined;
|
oldKey = undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
const addSubscriber = () => {
|
const addSubscriber = (collection: string) => {
|
||||||
let key = Database.getKey(collection, document);
|
let key = Database.getKey(collection, document);
|
||||||
if (oldKey !== key) {
|
if (oldKey !== key) {
|
||||||
if (oldKey !== undefined) removeSubscriber();
|
if (oldKey !== undefined) removeSubscriber();
|
||||||
@ -225,7 +225,7 @@ export abstract class Query {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (collection) {
|
if (collection) {
|
||||||
addSubscriber();
|
addSubscriber(collection);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Reference in New Issue
Block a user