hughhhh commented on a change in pull request #18722:
URL: https://github.com/apache/superset/pull/18722#discussion_r811598150



##########
File path: superset-frontend/src/views/components/MenuRight.tsx
##########
@@ -144,9 +158,30 @@ const RightMenu = ({
       {menu.label}
     </>
   );
+
+  const handleMenuSelection = (itemChose: React.Key) => {
+    if (itemChose === GlobalMenuDataOptions.DB_CONNECTION) {
+      setShowModal(true);
+      setEngine('');

Review comment:
       I tried moving this logic to the into component, but since we are 
managing the state in the upper component (MenuRight) it doesn't reset. 
   
   Open to other strategies here, but was having a hard time getting it to work 
without reseting from the upper component




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to