mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Apply suggestions from code review
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user