You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be a logic fault starting as deep as the API.
The type of a given choice-based setting is defined as "string" from the API.
This type isn't changed at any point when passing the Setting typed prop from a to b to c, and so on.
The SettingItem component will then render a string.
As a bonus, the aforementioned component doesn't even have a render option beside bool and string.
Activity
LavissaWoW commentedon Jul 1, 2024
This seems to be a logic fault starting as deep as the API.
The type of a given choice-based setting is defined as "string" from the API.
This type isn't changed at any point when passing the
Settingtyped prop from a to b to c, and so on.The
SettingItemcomponent will then render a string.As a bonus, the aforementioned component doesn't even have a render option beside bool and string.
http://localhost:8000/api/settings/global/INVENTREE_DEFAULT_CURRENCY/{ "pk": 1, "key": "INVENTREE_DEFAULT_CURRENCY", "value": "USD", "name": "Default Currency", "description": "Select base currency for pricing calculations", "type": "string", "units": "", "choices": [ { "value": "AUD", "display_name": "Australian Dollar" }, { "value": "CAD", "display_name": "Canadian Dollar" }, { "value": "CNY", "display_name": "Chinese Yuan" }, { "value": "EUR", "display_name": "Euro" }, { "value": "GBP", "display_name": "British Pound" }, { "value": "JPY", "display_name": "Japanese Yen" }, { "value": "NZD", "display_name": "New Zealand Dollar" }, { "value": "USD", "display_name": "US Dollar" } ], "model_name": null, "api_url": null, "typ": "inventree" }