Skip to content
This repository was archived by the owner on Dec 26, 2025. It is now read-only.
/ dopenote Public archive

Fix: Handle cancel action in rename notebook (Fixes #186)#365

Open
ardupilote wants to merge 1 commit intoxy2z:masterfrom
ardupilote:fix/rename-cancel-bug
Open

Fix: Handle cancel action in rename notebook (Fixes #186)#365
ardupilote wants to merge 1 commit intoxy2z:masterfrom
ardupilote:fix/rename-cancel-bug

Conversation

@ardupilote
Copy link

Resolves the JavaScript crash reported in #186 when cancelling the rename notebook action.

Changes Made:

Crash Fix: Added a guard clause if (new_title === null) to handle the Cancel action gracefully.
Validation: Users are now alerted if they try to save an empty notebook title.
Refactor: Improved the rename logic to use optimistic UI updates for a snappier user experience.
Testing: Verified that clicking "Cancel" no longer freezes the application and that empty titles trigger the appropriate alert.

@xy2z
Copy link
Owner

xy2z commented Dec 6, 2025

Thanks for the contribution, however this project hasn't been active for years and should probably just be archived... sorry

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants