Skip to content

Commit

Permalink
Disable refresh for pending tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Farcy committed Aug 31, 2023
1 parent c394df9 commit 74f0da5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/RA/DataSource/components/DataSourceEditActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ const DataSourceEditActions = ({
}
}, [setPending, dataProvider, notify, id]);

React.useEffect(() => {
if (report?.status === 'Pending') {
setPending(true);
}
}, [report, report.status, pending]);

return (
<TopToolbar>
<ListButton
Expand Down

0 comments on commit 74f0da5

Please sign in to comment.