Apply suggestions from code review
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
7b069cc51f
commit
bb5ba4f421
@ -108,9 +108,6 @@ mappings:
|
||||
locations:
|
||||
1: name # Citadel of Ricks
|
||||
label: Location
|
||||
- field: locations
|
||||
label: Location count
|
||||
format: size # 2
|
||||
```
|
||||
|
||||
## Data Transformation
|
||||
|
||||
@ -101,8 +101,7 @@ function formatValue(t, mapping, rawValue) {
|
||||
});
|
||||
break;
|
||||
case "size":
|
||||
value = getLength(value);
|
||||
value = t("common.number", { value });
|
||||
value = t("common.number", { value: getLength(value) });
|
||||
break;
|
||||
case "text":
|
||||
default:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user