This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch fix-bugs
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit bf3f2d128342d5d4026c213a76d87691fdde6acc
Author: mintsweet <[email protected]>
AuthorDate: Wed Dec 27 17:40:56 2023 +1300

    fix(config-ui): modal not reset cause scope config error
---
 config-ui/src/plugins/components/scope-config-select/index.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config-ui/src/plugins/components/scope-config-select/index.tsx 
b/config-ui/src/plugins/components/scope-config-select/index.tsx
index dd5ba2169..be1d5cce2 100644
--- a/config-ui/src/plugins/components/scope-config-select/index.tsx
+++ b/config-ui/src/plugins/components/scope-config-select/index.tsx
@@ -109,6 +109,7 @@ export const ScopeConfigSelect = ({ plugin, connectionId, 
scopeConfigId, onCance
         </Button>
       </Flex>
       <Modal
+        destroyOnClose
         open={open}
         width={960}
         centered
@@ -121,7 +122,7 @@ export const ScopeConfigSelect = ({ plugin, connectionId, 
scopeConfigId, onCance
           connectionId={connectionId}
           showWarning={!!updatedId}
           scopeConfigId={updatedId}
-          onCancel={onCancel}
+          onCancel={handleHideDialog}
           onSubmit={handleSubmit}
         />
       </Modal>

Reply via email to