We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d141abb commit 088d7f5Copy full SHA for 088d7f5
src/components/TodoList.ts
@@ -13,9 +13,7 @@ export default class TodoList {
13
) {
14
$target.appendChild(this.$todoList);
15
16
- if (Array.isArray(initialState)) this.state = initialState;
17
- else this.state = [];
18
-
+ this.state = initialState;
19
this.render();
20
21
this.$todoList.addEventListener("click", (e) => {
0 commit comments