From: Stephen Smith Date: Mon, 14 Mar 2022 21:03:10 +0000 (-0400) Subject: 18559: Fix up to date profile data not showing after save X-Git-Tag: 2.4.0~1^2~30 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/71a95158c62c2dd106e1874c0b811c56b35cf9cc 18559: Fix up to date profile data not showing after save Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- diff --git a/src/store/user-profile/user-profile-actions.ts b/src/store/user-profile/user-profile-actions.ts index 82e90a2b..0c6341f2 100644 --- a/src/store/user-profile/user-profile-actions.ts +++ b/src/store/user-profile/user-profile-actions.ts @@ -3,7 +3,7 @@ // SPDX-License-Identifier: AGPL-3.0 import { RootState } from "store/store"; import { Dispatch } from 'redux'; -import { initialize, reset } from "redux-form"; +import { initialize } from "redux-form"; import { ServiceRepository } from "services/services"; import { bindDataExplorerActions } from "store/data-explorer/data-explorer-action"; import { propertiesActions } from 'store/properties/properties-actions'; @@ -38,7 +38,7 @@ export const saveEditedUser = (resource: any) => try { const user = await services.userService.update(resource.uuid, resource); dispatch(updateResources([user])); - dispatch(reset(USER_PROFILE_FORM)); + dispatch(initialize(USER_PROFILE_FORM, user)); dispatch(snackbarActions.OPEN_SNACKBAR({ message: "Profile has been updated.", hideDuration: 2000, kind: SnackbarKind.SUCCESS })); } catch (e) { dispatch(snackbarActions.OPEN_SNACKBAR({