mirror of
https://github.com/apache/superset.git
synced 2026-04-28 04:25:07 +00:00
chore: Removes unused vars (#20194)
* chore: Removes unused vars * Fixes lint * Disables no-unused-vars for the operators
This commit is contained in:
committed by
GitHub
parent
0a50a9b380
commit
d6f9fb5af1
@@ -26,9 +26,6 @@ import ModalTrigger from 'src/components/ModalTrigger';
|
||||
import { EmptyWrapperType } from 'src/components/TableView/TableView';
|
||||
|
||||
interface EstimateQueryCostButtonProps {
|
||||
dbId: number;
|
||||
schema: string;
|
||||
sql: string;
|
||||
getEstimate: Function;
|
||||
queryCostEstimate: Record<string, any>;
|
||||
selectedText?: string;
|
||||
@@ -37,9 +34,6 @@ interface EstimateQueryCostButtonProps {
|
||||
}
|
||||
|
||||
const EstimateQueryCostButton = ({
|
||||
dbId,
|
||||
schema,
|
||||
sql,
|
||||
getEstimate,
|
||||
queryCostEstimate = {},
|
||||
selectedText,
|
||||
|
||||
@@ -686,9 +686,6 @@ class SqlEditor extends React.PureComponent {
|
||||
this.props.database.allows_cost_estimate && (
|
||||
<span>
|
||||
<EstimateQueryCostButton
|
||||
dbId={qe.dbId}
|
||||
schema={qe.schema}
|
||||
sql={qe.sql}
|
||||
getEstimate={this.getQueryCostEstimate}
|
||||
queryCostEstimate={qe.queryCostEstimate}
|
||||
selectedText={qe.selectedText}
|
||||
|
||||
Reference in New Issue
Block a user