Fix infinite WI notes loading
What does this MR do and why?
This MR fixes a bug with work item modal view: every single time we open WI in a modal - close the modal - open the modal again, we could observe infinite skeleton loader for notes.
Screenshots or screen recordings
| Before | After |
|---|---|
| before | after |
How to set up and validate locally
- Open an issue and create a task
- Add a few notes and system notes to the task.
- Close the modal and refresh the page.
- Open task in a modal and change the order of notes.
- Close the modal and open it again. You should see the list of notes instead of skeleton loader.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.