mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-19 04:24:55 +00:00
chore: Check assignee exists or not before rendering the assignee avatar (#7104)
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<thumbnail
|
<thumbnail
|
||||||
v-if="notificationItem.primary_actor.meta.assignee"
|
v-if="hasAssignee(notificationItem)"
|
||||||
:src="notificationItem.primary_actor.meta.assignee.thumbnail"
|
:src="notificationItem.primary_actor.meta.assignee.thumbnail"
|
||||||
size="16px"
|
size="16px"
|
||||||
:username="notificationItem.primary_actor.meta.assignee.name"
|
:username="notificationItem.primary_actor.meta.assignee.name"
|
||||||
@@ -127,6 +127,9 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
hasAssignee(notification) {
|
||||||
|
return notification.primary_actor.meta?.assignee;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user