fix: full page load to lms if error joining course
This commit is contained in:
@@ -76,6 +76,9 @@
|
|||||||
if (addedMember.error) {
|
if (addedMember.error) {
|
||||||
console.error('Error adding student to group', courseData.group_id, addedMember.error);
|
console.error('Error adding student to group', courseData.group_id, addedMember.error);
|
||||||
snackbar.error('snackbar.invite.failed_join');
|
snackbar.error('snackbar.invite.failed_join');
|
||||||
|
|
||||||
|
// Full page load to lms if error joining, probably user already joined
|
||||||
|
window.location.href = '/lms';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user