fix: sentry issues [CW-2222][CW-2232] (#7591)
This commit is contained in:
@@ -49,13 +49,20 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$nextTick(() => {
|
this.$watch(() => {
|
||||||
const wrap = this.$refs.messageContainer;
|
return this.$refs.messageContainer;
|
||||||
const message = wrap.querySelector('.message-content');
|
}, this.setOverflow);
|
||||||
this.isOverflowing = message.offsetHeight > 150;
|
|
||||||
});
|
this.$nextTick(this.setOverflow);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
setOverflow() {
|
||||||
|
const wrap = this.$refs.messageContainer;
|
||||||
|
if (wrap) {
|
||||||
|
const message = wrap.querySelector('.message-content');
|
||||||
|
this.isOverflowing = message.offsetHeight > 150;
|
||||||
|
}
|
||||||
|
},
|
||||||
escapeHtml(html) {
|
escapeHtml(html) {
|
||||||
var text = document.createTextNode(html);
|
var text = document.createTextNode(html);
|
||||||
var p = document.createElement('p');
|
var p = document.createElement('p');
|
||||||
|
|||||||
@@ -242,7 +242,9 @@ export default {
|
|||||||
get() {
|
get() {
|
||||||
const inboxList = this.contact.contactableInboxes || [];
|
const inboxList = this.contact.contactableInboxes || [];
|
||||||
return (
|
return (
|
||||||
inboxList.find(inbox => inbox.inbox.id === this.targetInbox.id) || {
|
inboxList.find(inbox => {
|
||||||
|
return inbox.inbox?.id && inbox.inbox?.id === this.targetInbox?.id;
|
||||||
|
}) || {
|
||||||
inbox: {},
|
inbox: {},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user