Skip to content

Commit ffb420f

Browse files
committed
Merge branch 'master' into v1.0.1
# Conflicts: # src/actions/query.js
2 parents 3d3070a + c1a0445 commit ffb420f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/actions/query.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,15 @@ export const watchEvent = (firebase, dispatch, event, path, dest, onlyLastEvent
247247
if (!item[paramToPopulate]) {
248248
return Object.assign(item, { _key: key })
249249
}
250+
251+
// TODO: Handle populating a list
250252
return !isString(item[paramToPopulate])
251253
// Parameter to be populated is not an id
252-
? Promise.reject(`Population id is not a string.\n Type: ${typeof item[paramToPopulate]}\n Id: ${JSON.stringify(item[paramToPopulate])}`)
254+
? Promise.reject(`
255+
Population id is not a string.\n
256+
Type: ${typeof item[paramToPopulate]}\n
257+
Id: ${JSON.stringify(item[paramToPopulate])}
258+
`)
253259
: listRef.child(item[paramToPopulate])
254260
.once('value')
255261
.then(snap =>

0 commit comments

Comments
 (0)