mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
fix(webapp): fix property access of possibly undefined objects (#8639)
* Fix property access of possibly undefined objects
This commit is contained in:
parent
2a54dc9664
commit
192bedf95a
@ -44,7 +44,10 @@
|
||||
</ds-chip>
|
||||
</div>
|
||||
<!-- group categories -->
|
||||
<div class="categories" v-if="categoriesActive && group.categories.length > 0">
|
||||
<div
|
||||
class="categories"
|
||||
v-if="categoriesActive && group.categories && group.categories.length > 0"
|
||||
>
|
||||
<category
|
||||
v-for="category in group.categories"
|
||||
:key="category.id"
|
||||
|
||||
@ -53,7 +53,10 @@
|
||||
class="footer"
|
||||
v-observe-visibility="(isVisible, entry) => visibilityChanged(isVisible, entry, post.id)"
|
||||
>
|
||||
<div class="categories" v-if="categoriesActive && post.categories.length > 0">
|
||||
<div
|
||||
class="categories"
|
||||
v-if="categoriesActive && post.categories && post.categories.length > 0"
|
||||
>
|
||||
<category
|
||||
v-for="category in post.categories"
|
||||
:key="category.id"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user