Design notes count is not updated on adding new comments
Summary
In Design management, when we oped a design, add a note and close the design, notes counter in designs list will remain the same until page reload
Steps to reproduce
- Open the design
- Create a new discussion or add a new comment to an existing discussion
- Close the design
- Observe the notes count didn't change
What is the current bug behavior?
Notes count is updated only on page reload
What is the expected correct behavior?
Notes count should be updated immediately after adding a new note to design
Possible fixes
Notes count should be incremented in update
hook of creating a new note / creating a new discussion mutation