mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
fix: TypeError - Cannot read properties of null (reading 'name') (#10887)
This commit is contained in:
@@ -24,7 +24,7 @@ const { sender } = useMessageContext();
|
|||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
const senderName = computed(() => {
|
const senderName = computed(() => {
|
||||||
return sender?.value.name;
|
return sender?.value?.name || '';
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { useI18n } from 'vue-i18n';
|
|||||||
import { useMessageContext } from '../provider.js';
|
import { useMessageContext } from '../provider.js';
|
||||||
import BaseAttachmentBubble from './BaseAttachment.vue';
|
import BaseAttachmentBubble from './BaseAttachment.vue';
|
||||||
|
|
||||||
const { contentAttributes } = useMessageContext();
|
const { content, sender, contentAttributes } = useMessageContext();
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
@@ -53,6 +53,11 @@ const action = computed(() => ({
|
|||||||
sender-translation-key="CONVERSATION.SHARED_ATTACHMENT.MEETING"
|
sender-translation-key="CONVERSATION.SHARED_ATTACHMENT.MEETING"
|
||||||
:action="action"
|
:action="action"
|
||||||
>
|
>
|
||||||
|
<div v-if="!sender" class="text-n-slate-12 text-sm truncate">
|
||||||
|
<!-- Added as a fallback, where the sender is not available (Deleted) -->
|
||||||
|
<!-- Will show the content, if senderName in BaseAttachment.vue is empty -->
|
||||||
|
{{ content }}
|
||||||
|
</div>
|
||||||
<div v-if="dyteAuthToken" class="video-call--container">
|
<div v-if="dyteAuthToken" class="video-call--container">
|
||||||
<iframe
|
<iframe
|
||||||
:src="meetingLink"
|
:src="meetingLink"
|
||||||
|
|||||||
Reference in New Issue
Block a user