diff --git a/frontend/src/scenes/data-warehouse/editor/OutputPane.tsx b/frontend/src/scenes/data-warehouse/editor/OutputPane.tsx index 30dfcc361f26a..7e2363b4c803b 100644 --- a/frontend/src/scenes/data-warehouse/editor/OutputPane.tsx +++ b/frontend/src/scenes/data-warehouse/editor/OutputPane.tsx @@ -40,10 +40,10 @@ export function OutputPane(): JSX.Element { const { editingView, sourceQuery, exportContext, isValidView, editorKey, error } = useValues(multitabEditorLogic) const { saveAsInsight, saveAsView, setSourceQuery, runQuery } = useActions(multitabEditorLogic) const { isDarkModeOn } = useValues(themeLogic) - const { response, responseLoading } = useValues(dataNodeLogic) + const { response, responseLoading, responseError } = useValues(dataNodeLogic) const { dataWarehouseSavedQueriesLoading } = useValues(dataWarehouseViewsLogic) const { updateDataWarehouseSavedQuery } = useActions(dataWarehouseViewsLogic) - const { visualizationType } = useValues(dataVisualizationLogic) + const { visualizationType, queryCancelled } = useValues(dataVisualizationLogic) const vizKey = `SQLEditorScene` @@ -70,45 +70,63 @@ export function OutputPane(): JSX.Element { }) }, [response]) + const ErrorState = useMemo((): JSX.Element | null => { + return ( +