diff --git a/src/files-and-videos/files-page/FilesPage.jsx b/src/files-and-videos/files-page/FilesPage.jsx index 057c5a22f3..afd79a5166 100644 --- a/src/files-and-videos/files-page/FilesPage.jsx +++ b/src/files-and-videos/files-page/FilesPage.jsx @@ -28,10 +28,13 @@ const FilesPage = ({ updatingStatus: updateAssetStatus, errors: errorMessages, } = useSelector(state => state.assets); + useEffect(() => { dispatch(fetchAssets(courseId)); }, [courseId]); + const handleErrorReset = (error) => dispatch(resetErrors(error)); + if (loadingStatus === RequestStatus.DENIED) { return (