From a5e2e75cbe6a565ce3ce133283f1c41cf2a79018 Mon Sep 17 00:00:00 2001 From: Lars Wagner Date: Sun, 3 Mar 2024 19:26:13 +0100 Subject: [PATCH] fix: move the duplicate check before the fetch api "post" call --- script.js | 1 - 1 file changed, 1 deletion(-) diff --git a/script.js b/script.js index 1cf17d5..c716d2c 100644 --- a/script.js +++ b/script.js @@ -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 = ""; });