Skip to content

Commit

Permalink
fixup! feat: Add slots for video and file upload components and alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
xitij2000 committed Nov 28, 2024
1 parent 694edb1 commit a49f0b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/files-and-videos/files-page/FilesPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div data-testid="under-construction-placeholder" className="row justify-contnt-center m-6">
Expand Down

0 comments on commit a49f0b4

Please sign in to comment.