Update web/frontend/src/components/config/config-sections.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
268cec6c04
commit
81d5ea79fd
1 changed files with 8 additions and 10 deletions
|
|
@ -700,16 +700,14 @@ export function RuntimeSection({ form, onFieldChange }: RuntimeSectionProps) {
|
||||||
>
|
>
|
||||||
<SelectTrigger className="w-full">
|
<SelectTrigger className="w-full">
|
||||||
<SelectValue>
|
<SelectValue>
|
||||||
{LOG_LEVEL_OPTIONS.find((o) => o.value === form.gatewayLogLevel)
|
{(() => {
|
||||||
? t(
|
const selected = LOG_LEVEL_OPTIONS.find(
|
||||||
LOG_LEVEL_OPTIONS.find(
|
|
||||||
(o) => o.value === form.gatewayLogLevel,
|
(o) => o.value === form.gatewayLogLevel,
|
||||||
)!.labelKey,
|
|
||||||
LOG_LEVEL_OPTIONS.find(
|
|
||||||
(o) => o.value === form.gatewayLogLevel,
|
|
||||||
)!.labelDefault,
|
|
||||||
)
|
)
|
||||||
: form.gatewayLogLevel}
|
return selected
|
||||||
|
? t(selected.labelKey, selected.labelDefault)
|
||||||
|
: form.gatewayLogLevel
|
||||||
|
})()}
|
||||||
</SelectValue>
|
</SelectValue>
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue