Update web/frontend/src/components/config/config-sections.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Kristjan Kruus 2026-03-25 17:03:46 +02:00 committed by GitHub
parent 268cec6c04
commit 81d5ea79fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -700,16 +700,14 @@ export function RuntimeSection({ form, onFieldChange }: RuntimeSectionProps) {
>
<SelectTrigger className="w-full">
<SelectValue>
{LOG_LEVEL_OPTIONS.find((o) => o.value === form.gatewayLogLevel)
? t(
LOG_LEVEL_OPTIONS.find(
(o) => o.value === form.gatewayLogLevel,
)!.labelKey,
LOG_LEVEL_OPTIONS.find(
(o) => o.value === form.gatewayLogLevel,
)!.labelDefault,
)
: form.gatewayLogLevel}
{(() => {
const selected = LOG_LEVEL_OPTIONS.find(
(o) => o.value === form.gatewayLogLevel,
)
return selected
? t(selected.labelKey, selected.labelDefault)
: form.gatewayLogLevel
})()}
</SelectValue>
</SelectTrigger>
<SelectContent>