fix: invite 404 issue

This commit is contained in:
Rotimi Best
2024-06-19 16:05:18 +01:00
parent 5c40f190a3
commit c15918fff2
@@ -69,15 +69,16 @@ export const mockGroupMember = {
};
type GroupStore = {
id: number | null;
id: string;
tutors: GroupPerson[];
students: GroupPerson[];
people: GroupPerson[];
members?: GroupPerson[];
memberId?: string;
};
export const group = writable<GroupStore>({
id: null,
id: '',
tutors: [],
students: [],
people: []
@@ -89,7 +90,6 @@ export async function setCourse(data: Course, setLesson = true) {
if (data.group) {
const groupData = Object.assign(data.group, {
id: null,
tutors: [],
students: [],
people: []