danielBingham / peerreview

A diamond open access (free to access, free to publish), open source scientific and academic publishing platform.
GNU Affero General Public License v3.0
53 stars 1 forks source link

Cancelling a comment edit deletes the comment #171

Closed danielBingham closed 1 year ago

danielBingham commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

When you cancel a comment edit, it currently deletes the comment instead of setting it back to how it was prior to the edit.

To Reproduce Steps to reproduce the behavior:

  1. Edit a comment.
  2. Cancel the edit.

Actual behavior What actually happened?

The comment is deleted.

Expected behavior A clear and concise description of what you expected to happen.

The comment should be returned to the state it was in before editing began.