From 13baa633e5eac0ff93916067b53867ba3996dae7 Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Mon, 27 May 2024 10:11:58 +0200 Subject: [PATCH] fix: this.$refs.scrollableArea.removeEventListener undefined --- packages/ui/src/components/ResponsePanel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/components/ResponsePanel.vue b/packages/ui/src/components/ResponsePanel.vue index fcc0fa59..dd34c1cb 100644 --- a/packages/ui/src/components/ResponsePanel.vue +++ b/packages/ui/src/components/ResponsePanel.vue @@ -579,7 +579,7 @@ export default { } }, beforeUnmount() { - this.$refs.scrollableArea.removeEventListener('scroll', this.scrollableAreaOnScroll) + this.$refs.scrollableArea?.removeEventListener('scroll', this.scrollableAreaOnScroll) this.scrollableAreaEventListenerAttached = false }, }