Commit bed242c
committed
fix(ui): AutoForm i18nPrefix — skip description when the dict key is missing
tr() echoes the key back for a missing entry (an empty-string default is
falsy, so the provider can't substitute it), so the field description showed
the raw key (parameters.x.y.desc). Guard with for both label and
description, restoring the schema-derived fallback when no entry exists.1 parent a77f3fc commit bed242c
1 file changed
Lines changed: 11 additions & 7 deletions
Lines changed: 11 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
552 | | - | |
553 | | - | |
554 | | - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
555 | 557 | | |
556 | | - | |
557 | | - | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
558 | 561 | | |
559 | 562 | | |
560 | | - | |
561 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
562 | 566 | | |
563 | 567 | | |
564 | 568 | | |
| |||
0 commit comments