Skip to content

Commit

Permalink
fix(editor-3001): fix runquery (#26791)
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE authored Dec 10, 2024
1 parent b5ad806 commit 44a61af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/scenes/data-warehouse/editor/OutputPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ export function OutputPane(): JSX.Element {
const { variablesForInsight } = useValues(variablesLogic)

const { editingView, sourceQuery, exportContext, isValidView, error } = useValues(multitabEditorLogic)
const { saveAsInsight, saveAsView, setSourceQuery } = useActions(multitabEditorLogic)
const { saveAsInsight, saveAsView, setSourceQuery, runQuery } = useActions(multitabEditorLogic)
const { isDarkModeOn } = useValues(themeLogic)
const { response, responseLoading } = useValues(dataNodeLogic)
const { loadData } = useActions(dataNodeLogic)
const { dataWarehouseSavedQueriesLoading } = useValues(dataWarehouseViewsLogic)
const { updateDataWarehouseSavedQuery } = useActions(dataWarehouseViewsLogic)
const { visualizationType } = useValues(dataVisualizationLogic)
Expand Down Expand Up @@ -182,7 +181,7 @@ export function OutputPane(): JSX.Element {
disabledReason={error ? error : ''}
loading={responseLoading}
type="primary"
onClick={() => loadData(true)}
onClick={() => runQuery()}
>
<span className="mr-1">Run</span>
<KeyboardShortcut command enter />
Expand Down

0 comments on commit 44a61af

Please sign in to comment.