Prevent pushing null when creating a new label
What does this MR do and why?
Currently, when creating a label with an already existing name, we're trying to push null
to the labels array when updating the cache after mutation. This triggers immer
-related error in the console This MR adds a check on label
before proceeding with updating the cache
Screenshots or screen recordings
-
I have evaluated the MR acceptance checklist for this MR.