We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f58f941 commit b04f723Copy full SHA for b04f723
src/store/api.js
@@ -51,7 +51,7 @@ function fetch (child) {
51
api.child(child).once('value', snapshot => {
52
const val = snapshot.val()
53
// mark the timestamp when this item is cached
54
- val.__lastUpdated = Date.now()
+ if (val) val.__lastUpdated = Date.now()
55
cache && cache.set(child, val)
56
resolve(val)
57
}, reject)
0 commit comments