You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2025/07/03 01:26:29 UTC

(superset) 04/04: fix '+ Query'

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

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

commit 58f8c423b14bb5b529cb9d5fa99b5784911d90d0
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Wed Jul 2 18:25:54 2025 -0700

    fix '+ Query'
---
 superset-frontend/src/pages/SavedQueryList/index.tsx | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/superset-frontend/src/pages/SavedQueryList/index.tsx b/superset-frontend/src/pages/SavedQueryList/index.tsx
index 6edd3ff162..7a7e1a0a57 100644
--- a/superset-frontend/src/pages/SavedQueryList/index.tsx
+++ b/superset-frontend/src/pages/SavedQueryList/index.tsx
@@ -200,23 +200,16 @@ function SavedQueryList({
 
   subMenuButtons.push({
     name: (
-      <Link
-        to="/sqllab?new=true"
-        css={css`
-          display: flex;
-          &:hover {
-            color: currentColor;
-            text-decoration: none;
-          }
-        `}
-      >
+      <>
         <Icons.PlusOutlined iconSize="m" />
         {t('Query')}
-      </Link>
+      </>
     ),
     buttonStyle: 'primary',
+    onClick: () => {
+      history.push('/sqllab?new=true');
+    },
   });
-
   if (canCreate) {
     subMenuButtons.push({
       name: (