Fix faunadb @ref id access
This commit is contained in:
parent
0f099d7cad
commit
895c86b61a
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue