mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
Fix error translating legacy setting options (#2648)
This commit is contained in:
@@ -69,7 +69,12 @@ test('collect-i18n-general', async ({ comfyPage }) => {
|
||||
name: setting.name,
|
||||
tooltip: setting.tooltip,
|
||||
category: setting.category,
|
||||
options: setting.options
|
||||
options:
|
||||
typeof setting.options === 'function'
|
||||
? // @ts-expect-error: Audit and deprecate usage of legacy options type:
|
||||
// (value) => [string | {text: string, value: string}]
|
||||
setting.options(setting.defaultValue ?? '')
|
||||
: setting.options
|
||||
}))
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user