diff --git a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx index 8c6610191ebbe..83b6bb3f55b88 100644 --- a/superset-frontend/src/SqlLab/components/ResultSet/index.tsx +++ b/superset-frontend/src/SqlLab/components/ResultSet/index.tsx @@ -248,6 +248,10 @@ export default class ResultSet extends React.PureComponent< ); } + // Only fetch results if the result key change + // If we didn't have a result key before, then the results are loaded elsewhere + // so we can skip it, unless the query id changed, in that case we should + // refetch regardless. if ( (this.props.query.resultsKey && nextProps.query.resultsKey &&