deleted some comments and console.log
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user