Skip to content

Unable to discard changes when editing a file #5476

@rforced

Description

@rforced

Checklist

Version

2.44.0

Description

If you open a file, say text.txt. Make some changes, then click the x in the top left corner. You're presented with a menu, with options to cancel, save changes or discard.

Try clicking discard, nothing happens. This also leads to not being able to leave the page without some hassle due to #5260

What did you expect to happen?

The edits are discarded and we return to the file listing.

What actually happened?

Nothing. The discard button does nothing. Console shows no errors.

Reproduction Steps

  1. Create test.txt
  2. Add text to test.txt, save
  3. Open test.txt, make some edits you plan to discard.
  4. Click x in top left.
  5. Click discard, nothing happens.

Files

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions