From b3d4ff6ae0b44d1b678c163343b28d2fd3d01a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Schl=C3=BCnsen?= Date: Thu, 17 Oct 2019 15:07:23 +0200 Subject: [PATCH] Update json-viewer.vue Fix for handling when component was removed. Refs could be null --- lib/json-viewer.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/json-viewer.vue b/lib/json-viewer.vue index 03cc68b..85b4b00 100644 --- a/lib/json-viewer.vue +++ b/lib/json-viewer.vue @@ -123,6 +123,7 @@ export default { }, debResized() { this.$nextTick(() => { + if (!this.$refs.jsonBox) return; if (this.$refs.jsonBox.$el.clientHeight >= 250) { this.expandableCode = true } else {