Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
fix issue that workflow not refetched when search with same query con…
Browse files Browse the repository at this point in the history
…dition (#2520)

* fix issue that workflow not refetched when search with same query conditions

* trigger the tests again
  • Loading branch information
yutaodou authored Oct 25, 2021
1 parent 767873a commit 578c116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/pages/executions/WorkflowSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ export default function WorkflowPanel() {
const newQueryFT = buildQuery();
setQueryFT(newQueryFT);

if (oldQueryFT === newQueryFT) {
// Only force refetch if query didn't change. Else let react-query detect difference and refetch automatically
if (_.isEqual(oldQueryFT, newQueryFT)) {
refetch();
}
// Only force refetch if query didn't change. Else let react-query detect difference and refetch automatically
}

const handlePage = (page) => {
Expand Down

0 comments on commit 578c116

Please sign in to comment.