diff --git a/frontend/src/pages/Dashboard.jsx b/frontend/src/pages/Dashboard.jsx index 6e87205..352bb0a 100644 --- a/frontend/src/pages/Dashboard.jsx +++ b/frontend/src/pages/Dashboard.jsx @@ -82,6 +82,9 @@ export default function Dashboard() { setFiles(data); }).finally(() => { setChildrenLoading(false); + }).catch((err) => { + setError("Failed to fetch data from server."); + console.error(err); }); setSelected([]);