You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example in the following code, how do I make the code go into the .catch block
changeSubjectLine({
variables: {
campaignId,
},
})
.then(() => {
toast(successToast('Subject line dynamic saved.'));
})
.catch((e) => {
toast(errorToastConfig(e));
// I want the code to go into here
});
Is there a flag I can put in there to make it do that
The text was updated successfully, but these errors were encountered:
For example in the following code, how do I make the code go into the
.catch
blockIs there a flag I can put in there to make it do that
The text was updated successfully, but these errors were encountered: