Skip to content

Commit d4402de

Browse files
committed
fixed issue
1 parent 80c2e8b commit d4402de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/src/components/dashboard/ActivityPanel.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function formatRelativeTime(iso: string): string {
7373
const activities = ref<Activity[]>([])
7474
7575
const showImageModal = ref(false)
76-
const modalImageSrc = ref<string | undefined>(undefined)
76+
const modalImageSrc = ref<string>('') // always a string for ImageModal
7777
const router = useRouter()
7878
7979
const goToProfile = (username: string) => {
@@ -87,7 +87,7 @@ const getUserImage = (image_data: string | null | undefined, image_type?: string
8787
8888
const openImageModal = (activity: { image_data?: string | null, image_type?: string }) => {
8989
if (activity.image_data) {
90-
modalImageSrc.value = getUserImage(activity.image_data, activity.image_type)
90+
modalImageSrc.value = getUserImage(activity.image_data, activity.image_type) || ''
9191
showImageModal.value = true
9292
}
9393
}

0 commit comments

Comments
 (0)