amsul / amsul/react-translated

Return string to object

オープン
#14 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
176
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。