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