Merge pull request '[PR]: Temp fix for null metadata' (#10390) from yawhn/trickey:fix_avatar_errors into develop

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10390
This commit is contained in:
Kainoa Kanter 2023-07-02 22:54:56 +00:00
commit 7ab8021a9d

View file

@ -33,7 +33,7 @@
@click="showTabsPopup" @click="showTabsPopup"
> >
<MkAvatar <MkAvatar
v-if="metadata.avatar" v-if="metadata && metadata.avatar"
class="avatar" class="avatar"
:user="metadata.avatar" :user="metadata.avatar"
:show-indicator="true" :show-indicator="true"
@ -91,7 +91,7 @@
</nav> </nav>
</template> </template>
<div class="buttons right"> <div class="buttons right">
<template v-if="metadata.avatar"> <template v-if="metadata && metadata.avatar">
<MkFollowButton <MkFollowButton
v-if="narrow" v-if="narrow"
:user="metadata.avatar" :user="metadata.avatar"