From ff5e049f0eb1e62ea7d6017832b1b6236da85a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=B3=BD=E5=B7=9D?= <1729889531@qq.com> Date: Mon, 11 Dec 2023 10:23:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20supportRef=E5=87=BD=E6=95=B0=20=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=9D=A1=E4=BB=B6=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/popup/utils/ref.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/popup/utils/ref.ts b/src/popup/utils/ref.ts index 3bf94977ff..d23fd5ae03 100644 --- a/src/popup/utils/ref.ts +++ b/src/popup/utils/ref.ts @@ -5,7 +5,7 @@ export function supportRef(nodeOrComponent: any): boolean { const type = isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type; // Function component node - if (typeof type === 'function' && !type.prototype?.render) { + if (typeof type === 'function' && !type?.render) { return false; }