We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 891f9ce commit fd941c3Copy full SHA for fd941c3
1 file changed
client/src/components/ToDoList.vue
@@ -187,7 +187,7 @@ export default {
187
fetch(API, {
188
headers: HEADERS,
189
method: "POST",
190
- body: JSON.stringify({ title: value, order: this.todos.length+1, owner_id: this.userId })
+ body: JSON.stringify({ title: value, order: this.todos.length+1, owner_id: this.userId ?? "public" })
191
}).then(res => {
192
if (res.ok) {
193
this.newTodo = ''
0 commit comments