Fixed call stack issue

This commit is contained in:
Alexis
2025-04-25 21:06:19 +02:00
parent 9ba09c2d2b
commit b71e715cf5

View File

@@ -36,8 +36,10 @@ const isUpdatingCalendar = ref<boolean>(false)
async function handleSubmit() {
isUpdatingCalendar.value = true
const fetchBody = { ...calendarSkeleton.value, worldId: props.world?.id }
const { error } = await tryCatch(
$fetch(`/api/calendars/${calendarSkeleton.value.id}`, { method: "PATCH", body: { ...calendarSkeleton.value, worldId: props.world?.id } })
$fetch(`/api/calendars/${calendarSkeleton.value.id}`, { method: "PATCH", body: fetchBody })
)
if (error) {