From ceaffb51018b99ac41f1ae921ae72a9ef82325d1 Mon Sep 17 00:00:00 2001 From: Roar Larsen Date: Fri, 22 Dec 2023 13:19:53 +0100 Subject: [PATCH] fix: reset role state when closing without saving --- .../src/header/components/UserInfoDialog.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/dm-core-plugins/src/header/components/UserInfoDialog.tsx b/packages/dm-core-plugins/src/header/components/UserInfoDialog.tsx index 24363a8d9..f2ce0ffea 100644 --- a/packages/dm-core-plugins/src/header/components/UserInfoDialog.tsx +++ b/packages/dm-core-plugins/src/header/components/UserInfoDialog.tsx @@ -59,7 +59,10 @@ export const UserInfoDialog = (props: UserInfoDialogProps) => { setIsOpen(false)} + onClose={() => { + setSelectedRole(role) + setIsOpen(false) + }} width={'720px'} > @@ -67,6 +70,7 @@ export const UserInfoDialog = (props: UserInfoDialogProps) => {