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"> <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, return selected
LOG_LEVEL_OPTIONS.find( ? t(selected.labelKey, selected.labelDefault)
(o) => o.value === form.gatewayLogLevel, : form.gatewayLogLevel
)!.labelDefault, })()}
)
: form.gatewayLogLevel}
</SelectValue> </SelectValue>
</SelectTrigger> </SelectTrigger>
<SelectContent> <SelectContent>