Skip to content

Commit 56e70db

Browse files
authored
Merge pull request #50 from Konkuk-KUIT/turtlehwan
hotfix: id convert string for json-server id
2 parents 7fb3960 + 4a06643 commit 56e70db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

week3/jinho1011/todo/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const addTodo = () => {
4141
if (!title) return;
4242

4343
const newTodo = {
44-
id: date.getTime(),
44+
id: date.getTime().toString(),
4545
title,
4646
createdAt,
4747
};

0 commit comments

Comments
 (0)