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

  1. Open an issue and create a task
  2. Add a few notes and system notes to the task.
  3. Close the modal and refresh the page.
  4. Open task in a modal and change the order of notes.
  5. 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.

Merge request reports

Loading