guard for virtual height

This commit is contained in:
Henry Jameson 2026-09-01 13:11:52 +03:00
commit abe6af133f

View file

@ -622,6 +622,7 @@ const conversation = {
}, },
updateVirtualHeight() { updateVirtualHeight() {
if (this.hide) return // no updates when not rendering if (this.hide) return // no updates when not rendering
if (!this.status) return // not loaded yet
this.$nextTick(() => { this.$nextTick(() => {
this.virtualHeight = this.$refs.body.getBoundingClientRect().height this.virtualHeight = this.$refs.body.getBoundingClientRect().height
this.$emit('update:virtualHeight', { this.$emit('update:virtualHeight', {