Prevent undefined
mutation result in useMutation
#8018
Merged
undefined
mutation result in useMutation
#8018