Skip to content
Snippets Groups Projects
Commit 905584b5 authored by abdu's avatar abdu
Browse files

fix bug active todos not showing in active todos tab

parent 0eff75c5
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ export default {
if(response.status === 200) {
const items = await response.json()
this.items = items.filter(item => item.completed === 'false')
this.items = items.filter(item => item.completed === false)
this.completedItems = items.filter(item => item.completed === true)
console.log(this.items)
console.log(this.completedItems)
......@@ -84,7 +84,7 @@ export default {
body: JSON.stringify({
"title": this.todo.title,
"description": this.todo.description,
"userId": this.$route.params.id,
"userId": localStorage.getItem('userId'),
"completed": false
})
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment