We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fc337cc + 498ed41 commit df5f963Copy full SHA for df5f963
1 file changed
plugin-hrm-form/src/components/customIntegrations/uscr/DispatchIncidentButton.tsx
@@ -105,8 +105,7 @@ const DispatchIncidentButton: React.FC<Props> = ({ contactId }) => {
105
const valid = await trigger();
106
if (valid) {
107
await saveDraft();
108
- // We use a regular dispatch here because we handle the error from where it is called.
109
- dispatch(newIncidentDispatchAction(savedContact));
+ await dispatch(newIncidentDispatchAction(savedContact));
110
Notifications.showNotificationSingle(dispatchSuccessNotification);
111
}
112
} catch (err) {
0 commit comments