From 895c86b61a8346c9cb4a235b33210e89ba1aa546 Mon Sep 17 00:00:00 2001 From: Lambros Petrou Date: Sat, 6 Oct 2018 12:22:56 +0100 Subject: [PATCH] Fix faunadb @ref id access --- src/App.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 7cd61fc..a0a1b16 100644 --- a/src/App.js +++ b/src/App.js @@ -324,5 +324,6 @@ function getTodoId(todo) { if (!todo.ref) { return null } - return todo.ref['@ref'].split('/').pop() + console.log(todo) + return todo.ref['@ref'].id.split('/').pop() }