only fetch db function when db exists in sql lab (#16754)

This commit is contained in:
Elizabeth Thompson
2021-09-21 09:40:02 -07:00
committed by GitHub
parent f032cc254c
commit d375538671
3 changed files with 25 additions and 15 deletions

View File

@@ -26,16 +26,10 @@ import CopyToClipboard from 'src/components/CopyToClipboard';
import { storeQuery } from 'src/utils/common';
import { getClientErrorObject } from 'src/utils/getClientErrorObject';
import { FeatureFlag, isFeatureEnabled } from '../../featureFlags';
import { QueryEditor } from '../types';
interface ShareSqlLabQueryPropTypes {
queryEditor: {
dbId: number;
title: string;
schema: string;
autorun: boolean;
sql: string;
remoteId: number | null;
};
queryEditor: QueryEditor;
addDangerToast: (msg: string) => void;
}