mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-06-07 05:57:41 +00:00
fix typescript errors
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
5b1c140e85
commit
6759770002
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ const { list, fetch, updateItem } = useWishlistStore()
|
||||||
await fetch(route.params.slug as string)
|
await fetch(route.params.slug as string)
|
||||||
|
|
||||||
const notBoughtItems = computed(() => {
|
const notBoughtItems = computed(() => {
|
||||||
return list.value.items.filter(
|
return list.value?.items.filter(
|
||||||
(item: WishlistItemType) => item.bought === false
|
(item: WishlistItemType) => item.bought === false
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
@ -31,7 +31,7 @@ const bought = async (item: WishlistItemType): Promise<void> => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div v-if="list.id">
|
<div v-if="list !== null">
|
||||||
<div
|
<div
|
||||||
class="flex flex-col md:flex-row space-x-0 md:space-x-6 space-y-2 md:space-y-0 items-center"
|
class="flex flex-col md:flex-row space-x-0 md:space-x-6 space-y-2 md:space-y-0 items-center"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Add table
Reference in a new issue