Failing to edit a comment in the changes tab, updates the comment in the doscussions tab
Summary
When the API returns an error the comment gets updated in the discussions tab.
Steps to reproduce
- Go to a MR
- Click on the
Changestab - Click the the edit button to edit a comment
- Edit the comment
- Toggle the offline feature in the inspector panel
- Click save comment
- Click on the
Discussiontab - See the updated comment
What is the expected correct behaviour?
The comment should not be updated in the Discussion tab.