Skip to content

Deleting the active project leaves its draft marked saved #519

Closed

Description

@alex-rawlings-yyc

Deleting the active project from Project Info clears the Save target (handleMetadataProjectDeleted in ProjectModals.tsx) but leaves the draft's dirty flag alone. A clean draft then holds analysis that is saved nowhere, with no ● marker, so New or Open replaces it without asking.

To reproduce: open a project with analysis, leave it unedited, delete it from Project Info, then choose Open on another project. No confirmation appears.

Expected: the draft is marked unsaved once its project is deleted, unless it is empty.

Found while reviewing #512, whose book discard marks the draft unsaved when no project is active.

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions