From d43a7b9121b9601694dfd05987a45ca98d2bfc1f Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 23 Nov 2024 16:18:26 +0900 Subject: [PATCH] fix --- packages/frontend/src/scripts/aiscript/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/aiscript/api.ts b/packages/frontend/src/scripts/aiscript/api.ts index e9dc711cf0..8d254356cf 100644 --- a/packages/frontend/src/scripts/aiscript/api.ts +++ b/packages/frontend/src/scripts/aiscript/api.ts @@ -104,7 +104,7 @@ export function createAiScriptEnv(opts) { return await Promise.all(ast.map(async (node) => { const out = deepClone(node); if (out.type === 'text') { - const res = (await opts.topCall(fn, [values.STR(out.props.text)])); + const res = await opts.topCall(fn, [values.STR(out.props.text)]); utils.assertString(res); out.props.text = res.value; } else if (out.type !== 'plain' && 'children' in out && out.children != null && out.children.length > 0) {