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 = { type GroupStore = {
id: number | null; id: string;
tutors: GroupPerson[]; tutors: GroupPerson[];
students: GroupPerson[]; students: GroupPerson[];
people: GroupPerson[]; people: GroupPerson[];
members?: GroupPerson[]; members?: GroupPerson[];
memberId?: string;
}; };
export const group = writable<GroupStore>({ export const group = writable<GroupStore>({
id: null, id: '',
tutors: [], tutors: [],
students: [], students: [],
people: [] people: []
@@ -89,7 +90,6 @@ export async function setCourse(data: Course, setLesson = true) {
if (data.group) { if (data.group) {
const groupData = Object.assign(data.group, { const groupData = Object.assign(data.group, {
id: null,
tutors: [], tutors: [],
students: [], students: [],
people: [] people: []