N
Novu3w ago
VJR

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.
2 Replies
Pawan Jain
Pawan Jain3w ago
Thanks for sharing the bug, We will look into it is 0.24.2 the version of @novu/notification-center package?
VJR
VJROP3w ago
HI Pawan, yes, that's the package
Want results from more Discord servers?
Add your server