Skip to content

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

  1. Open the design
  2. Create a new discussion or add a new comment to an existing discussion
  3. Close the design
  4. 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