Fix faunadb @ref id access

This commit is contained in:
Lambros Petrou 2018-10-06 12:22:56 +01:00
parent 0f099d7cad
commit 895c86b61a

View file

@ -324,5 +324,6 @@ function getTodoId(todo) {
if (!todo.ref) { if (!todo.ref) {
return null return null
} }
return todo.ref['@ref'].split('/').pop() console.log(todo)
return todo.ref['@ref'].id.split('/').pop()
} }