const Model = {
addTask: function (timestamp: string, description: string) {
- document.body.appendChild(this.createTask(timestamp, description)).focus();
+ document.getElementById("tasks")!.appendChild(this.createTask(timestamp, description)).focus();
},
createTask: function (timestamp: string, description: string) {