This commit is contained in:
2025-01-01 14:25:33 +01:00
parent a7e961fc0c
commit f5332411d2
3 changed files with 29 additions and 17 deletions

View File

@@ -43,8 +43,6 @@
let member = $state(event.maxTeamMembers);
let schemType = $state(event.schemType);
let publicOnly = $state(event.publicSchemsOnly);
let addReferee: {name: string, id: number}[] = [];
let removeReferee: {name: string, id: number}[] = [];
let errorOpen = $state(false);
let error: any = $state(undefined);
@@ -69,9 +67,7 @@
endDate.diff(dayjs(event.end)) !== 0 ||
member !== event.maxTeamMembers ||
schemType != event.schemType ||
publicOnly !== event.publicSchemsOnly ||
addReferee.length > 0 ||
removeReferee.length > 0);
publicOnly !== event.publicSchemsOnly);
async function del() {
@@ -95,8 +91,8 @@
publicSchemsOnly: publicOnly,
schemType: schemType ?? "null",
start: startDate,
addReferee: addReferee.map((ref) => ref.id),
removeReferee: removeReferee.map((ref) => ref.id)
addReferee: [],
removeReferee: []
};
try {