diff --git a/public/app/percona/inventory/Tabs/Services.tsx b/public/app/percona/inventory/Tabs/Services.tsx index b1f05b8b6fce0..786e7491ecb58 100644 --- a/public/app/percona/inventory/Tabs/Services.tsx +++ b/public/app/percona/inventory/Tabs/Services.tsx @@ -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]);