Skip to content

Commit bd63efc

Browse files
ousmaneogally47
andauthored
fix isSubmitting on failure (#23758)
Co-authored-by: Mohamed OULD HOCINE <106236152+gally47@users.noreply.github.com>
1 parent 30e4ece commit bd63efc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graylog2-web-interface/src/components/users/UserCreate/UserCreate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ const UserCreate = () => {
185185
};
186186

187187
const onSubmit = (data) => {
188-
handleFormSubmit(data, user.roles);
189-
190188
sendTelemetry(TELEMETRY_EVENT_TYPE.USERS.USER_CREATED, {
191189
app_pathname: getPathnameWithoutId(pathname),
192190
app_action_value: 'user-create-form',
193191
});
192+
193+
return handleFormSubmit(data, user.roles);
194194
};
195195

196196
return (

0 commit comments

Comments
 (0)