Merged PR 898: 対応
## 概要 [Task4174: 対応](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/4174) - アカウント情報画面からディーラーを変更する際に、同名ディーラーがいてもそれぞれ別個に指定できるようにIDで検索するように修正しました。 ## レビューポイント - 対応方針は認識通りでしょうか? ## UIの変更 - なし ## クエリの変更 - クライアントのみ変更なのでなし ## 動作確認状況 - ローカルで確認 - 行った修正がデグレを発生させていないことを確認できるか - 具体的にどのような確認をしたか - ローカルで同名ディーラーでそれぞれを指定して変更できることを確認
This commit is contained in:
parent
b71c4398d2
commit
bdcce37b5a
@ -158,7 +158,7 @@ const AccountPage: React.FC = (): JSX.Element => {
|
||||
changeDealer({
|
||||
parentAccountId:
|
||||
dealers.find(
|
||||
(x) => x.name === event.target.value
|
||||
(x) => x.id === Number(event.target.value)
|
||||
)?.id || undefined,
|
||||
})
|
||||
);
|
||||
@ -175,7 +175,7 @@ const AccountPage: React.FC = (): JSX.Element => {
|
||||
)} --`}
|
||||
</option>
|
||||
{dealers.map((x) => (
|
||||
<option key={x.name} value={x.name}>
|
||||
<option key={x.id} value={x.id}>
|
||||
{x.name}
|
||||
</option>
|
||||
))}
|
||||
|
||||
@ -110,6 +110,7 @@ export const AddPartnerAccountPopup: React.FC<AddPartnerAccountPopup> = (
|
||||
country,
|
||||
adminName,
|
||||
email,
|
||||
offset,
|
||||
]);
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user