From 75d01f655f6bfc7423faf8beffc7b9ff51bf3141 Mon Sep 17 00:00:00 2001 From: Steve Faulkner Date: Wed, 26 May 2021 15:12:36 -0500 Subject: [PATCH] Show "Open Query" for SQL only (#830) --- src/Explorer/SplashScreen/SplashScreen.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Explorer/SplashScreen/SplashScreen.tsx b/src/Explorer/SplashScreen/SplashScreen.tsx index 7d8e65337..68ca591bc 100644 --- a/src/Explorer/SplashScreen/SplashScreen.tsx +++ b/src/Explorer/SplashScreen/SplashScreen.tsx @@ -250,12 +250,14 @@ export class SplashScreen extends React.Component { }); } - items.push({ - iconSrc: OpenQueryIcon, - title: "Open Query", - description: null, - onClick: () => this.container.openBrowseQueriesPanel(), - }); + if (userContext.apiType === "SQL") { + items.push({ + iconSrc: OpenQueryIcon, + title: "Open Query", + description: null, + onClick: () => this.container.openBrowseQueriesPanel(), + }); + } if (userContext.apiType !== "Cassandra") { items.push({