chore: Use queryEditorId in SqlEditor child components (#21650)

This commit is contained in:
EugeneTorap
2022-11-16 16:06:20 +03:00
committed by GitHub
parent 2f0d5f16f3
commit d76f305343
17 changed files with 240 additions and 254 deletions

View File

@@ -467,7 +467,7 @@ const SqlEditor = ({
onChange={params => {
dispatch(queryEditorSetTemplateParams(qe, params));
}}
queryEditor={qe}
queryEditorId={qe.id}
/>
</Menu.Item>
)}
@@ -543,7 +543,7 @@ const SqlEditor = ({
<span>
<EstimateQueryCostButton
getEstimate={getQueryCostEstimate}
queryEditor={queryEditor}
queryEditorId={queryEditor.id}
tooltip={t('Estimate the cost before running a query')}
/>
</span>
@@ -657,9 +657,8 @@ const SqlEditor = ({
>
<SqlEditorLeftBar
database={database}
queryEditor={queryEditor}
queryEditorId={queryEditor.id}
tables={tables}
actions={actions}
setEmptyState={bool => setShowEmptyState(bool)}
/>
</StyledSidebar>