Skip to content

Commit

Permalink
Remove preview data stale warning if reclick run query (#3429)
Browse files Browse the repository at this point in the history
  • Loading branch information
irisyngao authored Aug 15, 2024
1 parent 8d416db commit 9ffbcf7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .changeset/old-masks-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
'@finos/legend-query-builder': patch
---
Original file line number Diff line number Diff line change
Expand Up @@ -647,16 +647,18 @@ export const QueryBuilderResultPanel = observer(
{resultDescription}
</div>
)}
{executionResult && resultState.checkForStaleResults && (
<div className="query-builder__result__stale-status">
<div className="query-builder__result__stale-status__icon">
<ExclamationTriangleIcon />
</div>
<div className="query-builder__result__stale-status__label">
Preview data might be stale
{executionResult &&
resultState.checkForStaleResults &&
!resultState.isRunningQuery && (
<div className="query-builder__result__stale-status">
<div className="query-builder__result__stale-status__icon">
<ExclamationTriangleIcon />
</div>
<div className="query-builder__result__stale-status__label">
Preview data might be stale
</div>
</div>
</div>
)}
)}
{executionResult &&
executionResult instanceof TDSExecutionResult &&
resultState.isExecutionResultOverflowing && (
Expand Down

0 comments on commit 9ffbcf7

Please sign in to comment.