notty
notty copied to clipboard
New Note Button Doesn't Generate a Blank Note
Issue Description:
Steps to Reproduce:
Open the notty application. Click on the "New Note" button. Write Something on the Note. Get Back to home. Open that note and make any change. Quickly get back to home and create a new note. Observe that the new note is pre-filled with the content of a created note.
Expected Behavior:
Upon clicking the "New Note" button, a clean and fresh note should be created, ready for the user to input new content.
Actual Behavior:
Instead of getting an empty note, the new note is pre-filled with the content of a note that was created before.
Screenshots:
https://github.com/Dhravya/notty/assets/52105266/b341b719-e7f1-48f7-ad8c-0f42bcb7ad02
hey, thanks for this issue. Can you please check what the ID of the old note and a new note is?
This happens because the new note button counts the current number of notes and add one to it. A new note is automatically created when someone visits /note/ID. but because it did not get the correct number of notes, it's showing the last created note