no errors when viewing a different course

This commit is contained in:
2025-04-09 12:26:02 -06:00
parent 0fef2a6b87
commit b35ba0f939
8 changed files with 80 additions and 46 deletions

View File

@@ -38,8 +38,8 @@ export const useAddAssignmentToCanvasMutation = () => {
moduleName: string;
}) => {
if (!canvasModules) {
console.log("cannot add assignment until modules loaded");
return;
// console.log("cannot add assignment until modules loaded");
throw new Error("cannot add assignment until modules loaded");
}
const assignmentGroup = settings.assignmentGroups.find(