fix: Error when you try to edit a course from a button

This commit is contained in:
swve 2024-06-14 00:35:57 +01:00
parent f524ddb51a
commit 0fb213ee4e
7 changed files with 22 additions and 17 deletions

View file

@ -34,7 +34,7 @@ export function CourseProvider({ children, courseuuid }: any) {
}, [courseStructureData]);
if (error) return <div>Failed to load course structure</div>;
if (!courseStructureData) return <PageLoading />;
if (!courseStructureData) return '';
if (courseStructureData) {
return (