mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-06-06 21:47:40 +00:00
typescript issues
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
4f7e9592a3
commit
28a17f2a6c
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ const updateWishlist = async (updatedData: Wishlist): Promise<void> => {
|
|||
}
|
||||
|
||||
const deleteWishlist = async (): Promise<void> => {
|
||||
const { error } = await useFetch(`/wishlist/${state.value.id}`).delete()
|
||||
const { error } = await useFetch(`/wishlist/${state!.value!.id}`).delete()
|
||||
if (error.value) {
|
||||
throw error.value
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ const handleDeleteItem = async (item: WishlistItemType): Promise<void> => {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<div v-if="isFinished" class="h-full">
|
||||
<div v-if="isFinished && state !== undefined" class="h-full">
|
||||
<div
|
||||
class="flex flex-col items-center space-x-0 space-y-2 md:flex-row md:space-x-6 md:space-y-0"
|
||||
>
|
||||
|
|
Loading…
Add table
Reference in a new issue