Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Nov 23, 2024
1 parent 5c2674f commit d43a7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/src/scripts/aiscript/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d43a7b9

Please sign in to comment.