fix(tech-radar): missing state setters

This commit is contained in:
Rémi DOREAU
2020-06-20 18:52:15 +02:00
parent 3f7e0bd23f
commit fac4893555
@@ -37,11 +37,13 @@ const useTechRadarLoader = (props: TechRadarComponentProps) => {
.then((payload: TechRadarLoaderResponse) => {
setLoading(false);
setData(payload);
setError(undefined);
})
.catch((err: Error) => {
errorApi.post(err);
setLoading(false);
setError(err);
setData(undefined);
});
}, [getData, errorApi]);