amsul / amsul/react-translated
Return string to object
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 176
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi, I have Dropdown component with filtering.
I'm getting data for the component from ...
clubs = dataClubs.map((item) => {
return ({
value: item.id,
label: ``
});
});
Displaying a component is OK, but if I start filtering over the data, an error message will be displayed:
TypeError: option.label.toLowerCase is not a function
I tried to use "getTranslated" and work, but I must put in params language and translation.
Is it possible to add something like `,` where the parameter will be just text?
That you very much for help.
Ales
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.