js: snapshot class incorrectly defining 'exists' as a bool prop, instead of a function
This commit is contained in:
parent
05a35b7b82
commit
e48e5c290e
@ -4,6 +4,7 @@
|
|||||||
"node_modules",
|
"node_modules",
|
||||||
"android/build",
|
"android/build",
|
||||||
"android/.idea",
|
"android/.idea",
|
||||||
|
"ios/.idea",
|
||||||
"android/.gradle",
|
"android/.gradle",
|
||||||
"android/gradle",
|
"android/gradle",
|
||||||
".idea"
|
".idea"
|
||||||
|
@ -22,7 +22,6 @@ export default class Snapshot {
|
|||||||
this.ref = ref;
|
this.ref = ref;
|
||||||
this.key = snapshot.key;
|
this.key = snapshot.key;
|
||||||
this.value = snapshot.value;
|
this.value = snapshot.value;
|
||||||
this.exists = snapshot.exists || true;
|
|
||||||
this.priority = snapshot.priority === undefined ? null : snapshot.priority;
|
this.priority = snapshot.priority === undefined ? null : snapshot.priority;
|
||||||
this.childKeys = snapshot.childKeys || [];
|
this.childKeys = snapshot.childKeys || [];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user