Skip to content

Commit

Permalink
pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomedina248 committed Apr 1, 2022
1 parent bfffd0f commit abff716
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions superset-frontend/src/SqlLab/components/ResultSet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit abff716

Please sign in to comment.