mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 17:42:24 +08:00
js: snapshot class incorrectly defining 'exists' as a bool prop, instead of a function
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
"node_modules",
|
||||
"android/build",
|
||||
"android/.idea",
|
||||
"ios/.idea",
|
||||
"android/.gradle",
|
||||
"android/gradle",
|
||||
".idea"
|
||||
|
||||
@@ -22,7 +22,6 @@ export default class Snapshot {
|
||||
this.ref = ref;
|
||||
this.key = snapshot.key;
|
||||
this.value = snapshot.value;
|
||||
this.exists = snapshot.exists || true;
|
||||
this.priority = snapshot.priority === undefined ? null : snapshot.priority;
|
||||
this.childKeys = snapshot.childKeys || [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user