Apply suggestions from code review

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Jacobo de Vera
2024-08-27 12:34:23 +01:00
committed by GitHub
parent 7b069cc51f
commit bb5ba4f421
2 changed files with 1 additions and 5 deletions

View File

@@ -108,9 +108,6 @@ mappings:
locations:
1: name # Citadel of Ricks
label: Location
- field: locations
label: Location count
format: size # 2
```
## Data Transformation

View File

@@ -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: