From 3124afc8f8981097e945016317fdbaf8cd4b91c2 Mon Sep 17 00:00:00 2001 From: * <*> Date: Thu, 2 Feb 2023 07:12:36 +0800 Subject: [PATCH] Match-id-8a23de5aec1505a2c6c8e028a30493badb356e08 --- libs/horizon/src/horizonx/devtools/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/horizon/src/horizonx/devtools/index.ts b/libs/horizon/src/horizonx/devtools/index.ts index 35f924e6..7ea843ea 100644 --- a/libs/horizon/src/horizonx/devtools/index.ts +++ b/libs/horizon/src/horizonx/devtools/index.ts @@ -52,7 +52,7 @@ function makeProxySnapshot(obj) { export const devtools = { // returns vNode id from horizon devtools getVNodeId: vNode => { - if (!isPanelActive()) return; + if (!isPanelActive() || !window['__HORIZON_DEV_HOOK__'].getVnodeId) return; window['__HORIZON_DEV_HOOK__'].send(); // update list first return window['__HORIZON_DEV_HOOK__'].getVnodeId(vNode); },