deleted some comments and console.log

This commit is contained in:
2025-07-25 08:23:57 +02:00
parent 0b4d189439
commit 631ce77f7d
3 changed files with 3 additions and 15 deletions

View File

@@ -13,7 +13,6 @@
const caseList: ListItem[] = $state(data.caseList);
//Variabeln für EditableItem
let names: string[] = $state(caseList.map((l) => l.name));
let editedName: string = $state('');
let currentName: string = $state('');
@@ -49,7 +48,6 @@
}
async function handleUpdateCase(newName: string, oldName: string) {
console.log('Eltern, speichern erfolgreich', newName, oldName);
try {
const res = await fetch(`/api/list/${oldName}`, {
method: 'PUT',

View File

@@ -1,12 +1,11 @@
export async function load({ fetch, url }) {
export async function load({ fetch }) {
//const caseToken = url.searchParams.get('token');
const adminRes = await fetch(`/api/user`)
const user = await adminRes.json()
console.log("load Vorgang; ", user);
const res = await fetch(`/api/list`, {
const res = await fetch(`/api/list`, {
/* headers: {
Authorization: `Bearer ${caseToken}`
} */
@@ -15,7 +14,6 @@ console.log("load Vorgang; ", user);
const data = await res.json();
const caseList = data.caseList
console.log("load Vorgang; ", caseList, user);
return {
caseList,