From 6220f2d69a30ca8ce0e8ff45c8cdd77cbc6db2bf Mon Sep 17 00:00:00 2001 From: AndzejsP Date: Wed, 24 May 2023 13:20:41 +0300 Subject: [PATCH] rewrote default image function to return something --- web/src/components/PersonalityEntry.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/web/src/components/PersonalityEntry.vue b/web/src/components/PersonalityEntry.vue index fbb9c946..baaefd14 100644 --- a/web/src/components/PersonalityEntry.vue +++ b/web/src/components/PersonalityEntry.vue @@ -6,7 +6,7 @@
- +
@@ -63,12 +63,10 @@ export default { }, methods: { getImgUrl() { - - if (this.personality.avatar) { - return bUrl+this.personality.avatar - - } - return botImgPlaceholder; + return bUrl+this.personality.avatar + }, + defaultImg(event){ + event.target.src = botImgPlaceholder }, toggleSelected() { this.onSelected(this)