You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current Behavior
If there is only one non-deleted revision in revision list and it's the last one, "Revert Changes" action fails because there is no any other content to be used for revert action.
Steps to Reproduce
Edit a post
Click on "original content" revision in the revision list
Click on Options -> Delete button and delete the "original content"
Click on "most recent" revision in the revision list
Click on Options -> Revert Changes button
See the "Reverting of changes failed." error
Expected Behavior
"Options" button should not be visible if last revision is the only non-deleted revision in the revision list.
Screenshots
Environment
Extension version: 1.0.4
Possible Solution
I think I should count deleted revisions and change some logic here:
Bug Report
Current Behavior
If there is only one non-deleted revision in revision list and it's the last one, "Revert Changes" action fails because there is no any other content to be used for revert action.
Steps to Reproduce
Expected Behavior
"Options" button should not be visible if last revision is the only non-deleted revision in the revision list.
Screenshots
![](https://camo.githubusercontent.com/7ffff69a7c56ff8d56b4d159271b9e467adcb92a88df10ebccd862f14e870c80/68747470733a2f2f692e6962622e636f2f744d7378584d582f69737375652e706e67)
Environment
Possible Solution
I think I should count deleted revisions and change some logic here:
flarum-diff/js/src/forum/components/DiffModal.js
Lines 150 to 152 in e2980c8
The text was updated successfully, but these errors were encountered: