zoyasiddiqui / NoteNinja

A note-taking app with python code snippets and AI helpers.
MIT License
3 stars 1 forks source link

Note ID Bug #42

Closed zoyasiddiqui closed 9 months ago

zoyasiddiqui commented 9 months ago

Issue: When the note is created, it is given a certain ID. However, when the save button is clicked, this ID is incremented by 1, leaving the first note always empty.

Temporary Fix: Have set initial note ID to -1 rather than 0.

Real Solution: Should be sufficient to get rid of the call to the DAO in the CreateNoteInteractor execute method. However, this may involve a few more steps.

zoyasiddiqui commented 9 months ago

Fixed the ID issue by removing a duplicate call to DAO's create in the Create Note Interactor and having the presenter update the view everytime the note is saved.