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

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

Open
jainhj13 wants to merge 1 commit into
xy2z:masterfrom
jainhj13:fix/rename-cancel-bug
Open

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

Conversation

@jainhj13

@jainhj13 jainhj13 commented Dec 2, 2025

Copy link
Copy Markdown

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

xy2z commented Dec 6, 2025

Copy link
Copy Markdown
Owner

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