mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-21 20:59:05 +00:00
Final touches and testing
This commit is contained in:
@@ -18,8 +18,8 @@ const useTranscriptList = (page: number): TranscriptList => {
|
||||
const api = useApi();
|
||||
|
||||
useEffect(() => {
|
||||
setLoading(true);
|
||||
if (!api) return;
|
||||
setLoading(true);
|
||||
api
|
||||
.v1TranscriptsList(page)
|
||||
.then((response) => {
|
||||
@@ -32,7 +32,7 @@ const useTranscriptList = (page: number): TranscriptList => {
|
||||
setError(err);
|
||||
setErrorState(err);
|
||||
});
|
||||
}, [api, page]);
|
||||
}, [!api, page]);
|
||||
|
||||
return { response, loading, error };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user