Skip to content

Commit

Permalink
fix: move the duplicate check before the fetch api "post" call
Browse files Browse the repository at this point in the history
  • Loading branch information
DonLars committed Mar 3, 2024
1 parent cea62fc commit a5e2e75
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ Vue.createApp({
})
.then((response) => response.json())
.then((jsonData) => {
// Füge die Aufgabe zu todos hinzu
this.todos.push(jsonData);
this.newTodoText = "";
});
Expand Down

0 comments on commit a5e2e75

Please sign in to comment.