You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ms...@apache.org on 2025/08/11 13:07:54 UTC

(superset) branch master updated: fix(DatabaseModal): Don't set activeKey to undefined repeatedly (#34636)

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

msyavuz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 1af9c8dba2 fix(DatabaseModal): Don't set activeKey to undefined repeatedly (#34636)
1af9c8dba2 is described below

commit 1af9c8dba257e82d5c40fa94f11c7c021fbb4776
Author: Mehmet Salih Yavuz <sa...@proton.me>
AuthorDate: Mon Aug 11 16:07:47 2025 +0300

    fix(DatabaseModal): Don't set activeKey to undefined repeatedly (#34636)
---
 .../src/features/databases/DatabaseModal/ExtraOptions.tsx              | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx b/superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx
index d7b2e67c75..33d8d2d904 100644
--- a/superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx
+++ b/superset-frontend/src/features/databases/DatabaseModal/ExtraOptions.tsx
@@ -120,7 +120,8 @@ const ExtraOptions = ({
     if (!expandableModalIsOpen && activeKey !== undefined) {
       setActiveKey(undefined);
     }
-  }, [expandableModalIsOpen, activeKey]);
+    // See issue #34630 for why we omit `activeKey` from the dependency array
+  }, [expandableModalIsOpen]);
 
   return (
     <Collapse