Skip to content

Commit fd941c3

Browse files
author
Davide Mauri
committed
default owner_id to "public"
1 parent 891f9ce commit fd941c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/components/ToDoList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export default {
187187
fetch(API, {
188188
headers: HEADERS,
189189
method: "POST",
190-
body: JSON.stringify({ title: value, order: this.todos.length+1, owner_id: this.userId })
190+
body: JSON.stringify({ title: value, order: this.todos.length+1, owner_id: this.userId ?? "public" })
191191
}).then(res => {
192192
if (res.ok) {
193193
this.newTodo = ''

0 commit comments

Comments
 (0)