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:
|
locations:
|
||||||
1: name # Citadel of Ricks
|
1: name # Citadel of Ricks
|
||||||
label: Location
|
label: Location
|
||||||
- field: locations
|
|
||||||
label: Location count
|
|
||||||
format: size # 2
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Data Transformation
|
## Data Transformation
|
||||||
|
|||||||
@ -101,8 +101,7 @@ function formatValue(t, mapping, rawValue) {
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "size":
|
case "size":
|
||||||
value = getLength(value);
|
value = t("common.number", { value: getLength(value) });
|
||||||
value = t("common.number", { value });
|
|
||||||
break;
|
break;
|
||||||
case "text":
|
case "text":
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user