Closed jordanoverbye closed 4 years ago
I have traced this to following lines
the updateItem
mutation is coming from props and does not throw error (react-apollo
thing), it is always success even if the error is thrown. you will see both error and success.
Thanks @gautamsi! We will need to addd some extra checks in place to make sure we only show the correct message.
Bug report
Describe the bug
If you call the
addValidationError
function that is passed into thevalidateInput
hook, I would expect that the notification message will get shown to the User in the Admin UI App. It currently always says:Also, even though the item didn't update, a the success notification ALSO appears saying:
This shouldn't appear because the Item didn't actually update.
To Reproduce
This issue is easy to reproduce using the todo example as a base.
Expected behaviour
addValidationError
gets shown to the userScreenshots
System information
Additional context
Add any other context about the problem here.