Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit f065bc6

Browse files
committed
Don't send uninitialized local values on first sync. Fixes #108
1 parent dfab25b commit f065bc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

angularFire.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ AngularFire.prototype = {
8989
}
9090
}
9191
// If remote value is null, overwrite remote value with local
92-
if (remote === null) {
92+
if (remote === null && local !== undefined) {
9393
self._fRef.ref().set(local);
9494
remote = local;
9595
}

angularfire.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)