mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 07:37:10 +00:00
21w43a
This commit is contained in:
@@ -377,6 +377,8 @@ function StringSuffix({ path, getValues, config, node, value, lang, states }: No
|
||||
context = context.contextPush(config.enum)
|
||||
} else if (!isEnum(config) && config?.validator === 'resource' && typeof config.params.pool === 'string') {
|
||||
context = context.contextPush(config.params.pool)
|
||||
} else if (isEnum(config)) {
|
||||
context = path
|
||||
}
|
||||
return <select value={value ?? ''} onChange={onChange}>
|
||||
{node.optional() && <option value="">{locale(lang, 'unset')}</option>}
|
||||
|
||||
Reference in New Issue
Block a user