Skip to content

Commit

Permalink
allow edit cancel ToDoDynalistApp.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse-Hufstetler committed Sep 6, 2024
1 parent 9bf776b commit 9e67f4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ToDoDynalistApp.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@

var updateNode = (nodeId) => (async () => {
var self = toDos.filter((item) => item.id === nodeId)[0];
self.text = prompt("Edit Text", self.text);
var answer = prompt("Edit Text", self.text);
if (!answer) return;
self.text = answer;
await saveData(toDos);
redrawGrid();
})();
Expand Down

0 comments on commit 9e67f4f

Please sign in to comment.