SpaceAPI: unify unit formats

This commit is contained in:
He4eT 2025-04-05 01:07:53 +02:00
commit 34cc2742a0
3 changed files with 6 additions and 4 deletions

View file

@ -312,7 +312,7 @@ export default ({ strapi }: { strapi: Core.Strapi }) => ({
])(properties))
.map(([k, {value, unit}]) => [k, {
value,
unit: unit === 'Degree' ? '°' : unit,
unit: unit === 'degree' ? '°' : unit,
}]);
return {

View file

@ -2,7 +2,8 @@
"collectionName": "components_wind_directions",
"info": {
"displayName": "Direction",
"icon": "feather"
"icon": "feather",
"description": ""
},
"options": {},
"attributes": {
@ -13,7 +14,7 @@
"unit": {
"type": "enumeration",
"enum": [
"Degree"
"degree"
],
"required": true
}