Skip to content

Commit

Permalink
fix: article page ssr errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Dec 14, 2023
1 parent ee7972c commit 85676f0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions resources/js/Pages/Public/Articles/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@
role="list"
class="grid grid-cols-1 gap-8 mx-auto -mt-12 lg:mt-0 max-w-7xl sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3"
>
<ArticleCard :article="article" class="relative z-50 lg:-mt-12" v-for="article in related.data" />
<ArticleCard
:article="article"
class="relative z-50 lg:-mt-12"
v-for="article in related.data"
:key="article.id"
/>
</ul>
<LargeSquarePattern class="absolute top-0 right-0 z-10 hidden lg:block fill-primary-200" />
</div>
Expand All @@ -78,8 +83,8 @@
required: true,
},
related: {
type: Array,
default: () => [],
type: Object,
default: () => ({}),
},
});
</script>

0 comments on commit 85676f0

Please sign in to comment.