From 239530ec7ace0db95fffdc0cf30d1b0ad35851c1 Mon Sep 17 00:00:00 2001 From: tarasoff-jotter <155919115+tarasoff-jotter@users.noreply.github.com> Date: Wed, 7 Aug 2024 02:16:22 +0300 Subject: [PATCH] Update jsonTodoCollection.ts change value (empty array) for param in super(). --- Chapter 02/todo/src/jsonTodoCollection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chapter 02/todo/src/jsonTodoCollection.ts b/Chapter 02/todo/src/jsonTodoCollection.ts index e102d96..17ea18f 100644 --- a/Chapter 02/todo/src/jsonTodoCollection.ts +++ b/Chapter 02/todo/src/jsonTodoCollection.ts @@ -11,7 +11,7 @@ export class JsonTodoCollection extends TodoCollection { private database: LowSync; constructor(public userName: string, todoItems: TodoItem[] = []) { - super(userName, []); + super(userName, todoItems); this.database = new LowSync(new JSONFileSync("Todos.json")); this.database.read();