mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: Error when you try to edit a course from a button
This commit is contained in:
parent
f524ddb51a
commit
0fb213ee4e
7 changed files with 22 additions and 17 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue