From bdcce37b5a9dcb6f52b841c8ccca921fd409924b Mon Sep 17 00:00:00 2001 From: "makabe.t" Date: Thu, 23 May 2024 01:12:31 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=20898:=20=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task4174: 対応](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/4174) - アカウント情報画面からディーラーを変更する際に、同名ディーラーがいてもそれぞれ別個に指定できるようにIDで検索するように修正しました。 ## レビューポイント - 対応方針は認識通りでしょうか? ## UIの変更 - なし ## クエリの変更 - クライアントのみ変更なのでなし ## 動作確認状況 - ローカルで確認 - 行った修正がデグレを発生させていないことを確認できるか - 具体的にどのような確認をしたか - ローカルで同名ディーラーでそれぞれを指定して変更できることを確認 --- dictation_client/src/pages/AccountPage/index.tsx | 4 ++-- .../src/pages/PartnerPage/addPartnerAccountPopup.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dictation_client/src/pages/AccountPage/index.tsx b/dictation_client/src/pages/AccountPage/index.tsx index cf887ef..5bfb8b4 100644 --- a/dictation_client/src/pages/AccountPage/index.tsx +++ b/dictation_client/src/pages/AccountPage/index.tsx @@ -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 => { )} --`} {dealers.map((x) => ( - ))} diff --git a/dictation_client/src/pages/PartnerPage/addPartnerAccountPopup.tsx b/dictation_client/src/pages/PartnerPage/addPartnerAccountPopup.tsx index 48b36a2..2ea40a4 100644 --- a/dictation_client/src/pages/PartnerPage/addPartnerAccountPopup.tsx +++ b/dictation_client/src/pages/PartnerPage/addPartnerAccountPopup.tsx @@ -110,6 +110,7 @@ export const AddPartnerAccountPopup: React.FC = ( country, adminName, email, + offset, ]); return (