Fixing some bugs and changing subscribe behaviour
This commit is contained in:
@ -230,7 +230,7 @@ export default class Query {
|
||||
|
||||
if (type === change.type) {
|
||||
Logging.debug("Path", this.path, change.path);
|
||||
if (this.path.length === change.path.length - (type === ChangeTypes.PUSH ? 1 : 0)) {
|
||||
if (this.path.length <= change.path.length - (type === ChangeTypes.PUSH ? 1 : 0)) {
|
||||
let valid = true;
|
||||
for (let i = 0; i < this.path.length; i++) {
|
||||
if (this.path[i] !== change.path[i]) {
|
||||
|
||||
Reference in New Issue
Block a user