mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
chore: Add null checks (#8100)
This commit is contained in:
@@ -1085,7 +1085,7 @@ export default {
|
||||
this.conversationId
|
||||
);
|
||||
|
||||
this.inReplyTo = this.currentChat.messages.find(message => {
|
||||
this.inReplyTo = this.currentChat?.messages?.find(message => {
|
||||
if (message.id === replyToMessageId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<p class="text-slate-600 dark:text-slate-400 pb-1 text-sm not-italic">
|
||||
<p class="pb-1 text-sm not-italic text-slate-600 dark:text-slate-400">
|
||||
{{ $t('INBOX_MGMT.SETTINGS_POPUP.AUTO_ASSIGNMENT_SUB_TEXT') }}
|
||||
</p>
|
||||
</label>
|
||||
@@ -62,7 +62,7 @@
|
||||
@blur="$v.maxAssignmentLimit.$touch"
|
||||
/>
|
||||
|
||||
<p class="text-slate-600 dark:text-slate-400 pb-1 text-sm not-italic">
|
||||
<p class="pb-1 text-sm not-italic text-slate-600 dark:text-slate-400">
|
||||
{{ $t('INBOX_MGMT.AUTO_ASSIGNMENT.MAX_ASSIGNMENT_LIMIT_SUB_TEXT') }}
|
||||
</p>
|
||||
|
||||
@@ -127,7 +127,7 @@ export default {
|
||||
setDefaults() {
|
||||
this.enableAutoAssignment = this.inbox.enable_auto_assignment;
|
||||
this.maxAssignmentLimit =
|
||||
this.inbox.auto_assignment_config.max_assignment_limit || null;
|
||||
this.inbox?.auto_assignment_config?.max_assignment_limit || null;
|
||||
this.fetchAttachedAgents();
|
||||
},
|
||||
async fetchAttachedAgents() {
|
||||
|
||||
Reference in New Issue
Block a user