fix(plugin-workflow): remove string template in condition calculation (#3688)

This commit is contained in:
Junyi 2024-03-25 11:34:14 +08:00 committed by GitHub
parent 00cf5fa02c
commit e9e116e476
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -355,7 +355,7 @@ export default class extends Instruction {
'x-component-props': { 'x-component-props': {
options: [ options: [
['basic', { label: `{{t("Basic", { ns: "${NAMESPACE}" })}}` }], ['basic', { label: `{{t("Basic", { ns: "${NAMESPACE}" })}}` }],
...Array.from(evaluators.getEntities()), ...Array.from(evaluators.getEntities()).filter(([key]) => ['math.js', 'formula.js'].includes(key)),
].reduce((result: RadioWithTooltipOption[], [value, options]: any) => result.concat({ value, ...options }), []), ].reduce((result: RadioWithTooltipOption[], [value, options]: any) => result.concat({ value, ...options }), []),
}, },
required: true, required: true,