From abff7162ae88348fc187458070fbe4938f1b786c Mon Sep 17 00:00:00 2001 From: Diego Medina Date: Fri, 1 Apr 2022 14:24:59 -0300 Subject: [PATCH] pr comment --- superset-frontend/src/SqlLab/components/ResultSet/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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 &&