Match-id-8a23de5aec1505a2c6c8e028a30493badb356e08

This commit is contained in:
* 2023-02-02 07:12:36 +08:00
parent b9da0f800a
commit 3124afc8f8
1 changed files with 1 additions and 1 deletions

View File

@ -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);
},