diff --git a/superset-frontend/src/explore/components/DataTablesPane/index.tsx b/superset-frontend/src/explore/components/DataTablesPane/index.tsx index 4a1172d0ffa8c..98792c822a2cd 100644 --- a/superset-frontend/src/explore/components/DataTablesPane/index.tsx +++ b/superset-frontend/src/explore/components/DataTablesPane/index.tsx @@ -224,7 +224,7 @@ export const DataTablesPane = ({ }, [queryFormData.adhoc_filters, queryFormData.datasource]); useEffect(() => { - if (queriesResponse) { + if (queriesResponse && chartStatus === 'success') { const { colnames } = queriesResponse[0]; setColumnNames([...colnames]); }