From 541709453ba83b645168095990e671cbc4f9a627 Mon Sep 17 00:00:00 2001 From: "ZM.J" Date: Sat, 27 Jul 2024 16:58:33 +0800 Subject: [PATCH] Fix getting all guides when some of them don't exist --- apps/guide.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/guide.js b/apps/guide.js index 8aff0fc..e9678ce 100644 --- a/apps/guide.js +++ b/apps/guide.js @@ -126,7 +126,9 @@ export class Guide extends ZZZPlugin { for (let i = 1; i <= this.maxNum; i++) { const guidePath = await this.getGuidePath(i, name, !!isUpdate); // msg.push(segment.image(`file://${guidePath}`)); - msg.push(segment.image(guidePath)); + if (guidePath) { + msg.push(segment.image(guidePath)); + } } if (msg.length) { await this.reply(await common.makeForwardMsg(this.e, [msg]));