gitdagray / simple-htmx-project

12 stars 9 forks source link

Backend fixed empty todo list #1

Open alvarouribe opened 6 months ago

alvarouribe commented 6 months ago

There is a problem creating a new todo item if the user removed all todo items and then tries to add a new one. This is because the getNextId function doesn't have a fallback when the array is empty.