VJR
NNovu
•Created by VJR on 11/20/2024 in #💬│support
Workflow disappears from preferences after toggling in React component
We're using 0.24.2 of the React component along with workflows which have tags assigned. We use these tags along with a
preferenceFilter
function on the PopoverNotificationCenter to control the visibility of workflow preferences. What we've noticed is that, as soon as a preference is toggled, the workflow disappears from the preference list. During debugging, we noticed that the workflow data returned by the PATCH request that updates the preference does not contain a tags
property. It seems like this data is merged into the component's state, deleting the tags
and then causing the workflow to no longer pass our filter function. The fact that the PATCH response is missing data about the workflow feels like a bug on the Novu API side.1 replies