Skip to content

Commit

Permalink
Fixed prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
doracretu3pillar committed Nov 14, 2024
1 parent 19f7023 commit 32973c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions public/app/percona/inventory/Tabs/Services.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,13 @@ export const Services = () => {
}, []);

useEffect(() => {
if(!fetchedServices) {
if (!fetchedServices) {
setIsLoading(true);
}
loadData().then(() => { triggerTimeout(loadData, DATA_INTERVAL); setIsLoading(false) });
loadData().then(() => {
triggerTimeout(loadData, DATA_INTERVAL);
setIsLoading(false);
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loadData]);

Expand Down

0 comments on commit 32973c4

Please sign in to comment.