From d224a349fad19efe07fd3774470a33e3a3813389 Mon Sep 17 00:00:00 2001 From: LitoMore Date: Fri, 30 Sep 2022 22:17:40 +0800 Subject: [PATCH] Fix `aliases` prompt (#7883) --- scripts/add-icon-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/add-icon-data.js b/scripts/add-icon-data.js index a1b066f79..8093bc349 100644 --- a/scripts/add-icon-data.js +++ b/scripts/add-icon-data.js @@ -159,7 +159,7 @@ const dataPrompt = [ suffix: ' (separate with commas)', validate: (text) => Boolean(text), transformer: aliasesTransformer, - when: (answers) => answers?.aliasesTypes.includes(x.value), + when: (answers) => answers?.aliasesTypes?.includes(x.value), })), { type: 'confirm',