From 12f24ae854bcc578921e67c3bbb1ccbe705fb9bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Fri, 16 Oct 2020 19:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=97=A0=E6=B3=95=E5=88=9D?= =?UTF-8?q?=E6=AC=A1=E4=BD=BF=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 4ad9f7b8..81adb0e1 100644 --- a/script.js +++ b/script.js @@ -1369,7 +1369,7 @@ function initialize() { if (isGuideMod) { - const idArr = searchMonList.originalHeads.map(head=>head.card.id); + const idArr = searchMonList.originalHeads ? searchMonList.originalHeads.map(head=>head.card.id) : []; const state = {searchArr:idArr,mid:newId}; const locationURL = new URL(location); if (newId === 0) {