Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
promisedApi.then(() => {
Alert.info(FormattedMessage({
id: 'Apis.Details.MediationPolicies.Edit.EditInMediationPolicy.success',
defaultMessage: 'Mediation policy added successfully',
}));
}).catch((errorResponse) => {
console.log(errorResponse);
promisedApi.then(() => {
Alert.info(FormattedMessage({
id: 'Apis.Details.MediationPolicies.Edit.EditFaultMediationPolicy.success',
defaultMessage: 'Mediation policy added successfully',
}));
}).catch((errorResponse) => {
console.log(errorResponse);
promisedApi.then(() => {
Alert.info(FormattedMessage({
id: 'Apis.Details.MediationPolicies.MediationPoliciesComponente.success',
defaultMessage: 'Mediation policy added successfully',
}));
}).catch((errorResponse) => {
console.log(errorResponse);