diff --git a/superset-frontend/src/SqlLab/components/ExploreCtasResultsButton/index.tsx b/superset-frontend/src/SqlLab/components/ExploreCtasResultsButton/index.tsx index e3f68aba79666..9adb5dc40261a 100644 --- a/superset-frontend/src/SqlLab/components/ExploreCtasResultsButton/index.tsx +++ b/superset-frontend/src/SqlLab/components/ExploreCtasResultsButton/index.tsx @@ -22,9 +22,7 @@ import { t } from '@superset-ui/core'; import { InfoTooltipWithTrigger } from '@superset-ui/chart-controls'; import Button from 'src/components/Button'; import { exploreChart } from 'src/explore/exploreUtils'; -import rootReducer from 'src/SqlLab/reducers'; - -type RootState = ReturnType; +import { RootState } from 'src/SqlLab/types'; interface ExploreCtasResultsButtonProps { actions: { diff --git a/superset-frontend/src/SqlLab/types.ts b/superset-frontend/src/SqlLab/types.ts index 27f08f5bbed18..b60ca8604be90 100644 --- a/superset-frontend/src/SqlLab/types.ts +++ b/superset-frontend/src/SqlLab/types.ts @@ -118,6 +118,7 @@ export type RootState = { tables: Record[]; queriesLastUpdate: number; user: UserWithPermissionsAndRoles; + errorMessage: string | null; }; localStorageUsageInKilobytes: number; messageToasts: toastState[];