Skip to content

Commit

Permalink
chore: add finally in try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
silviadmgz committed Feb 5, 2024
1 parent 31b4a0c commit fb2471d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/pages/Plant/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ const PlantPage = () => {
}
}
} catch (error) {
setError(true)
setError(true);
} finally {
setIsLoading(false);
}
setIsLoading(false);
};
fetchData();
}, [plantId, searchParams]);
Expand Down Expand Up @@ -133,7 +134,7 @@ const PlantPage = () => {
</Link>
</div>
)}

{plant && (
<div className='mx-5 my-2 flex-row'>
<img
Expand Down

0 comments on commit fb2471d

Please sign in to comment.