From 4aa20cb7673747b06e9c8db8130805f57c4a8793 Mon Sep 17 00:00:00 2001 From: Lucy <382783004@qq.com> Date: Thu, 30 Mar 2017 11:21:27 +0800 Subject: [PATCH] modify the key value --- src/components/ContactDropdownList/index.js | 2 +- src/components/RecipientsHeader/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ContactDropdownList/index.js b/src/components/ContactDropdownList/index.js index 178c2c7426..5467c1c219 100644 --- a/src/components/ContactDropdownList/index.js +++ b/src/components/ContactDropdownList/index.js @@ -74,7 +74,7 @@ function ContactDropdownList(props) { name: item.name, phoneNumber: item.phoneNumber, })} - key={JSON.stringify(item)} + key={`${item.phoneNumber}${item.name}${item.phoneType}`} /> )) } diff --git a/src/components/RecipientsHeader/index.js b/src/components/RecipientsHeader/index.js index b307de1f48..60391c0b16 100644 --- a/src/components/RecipientsHeader/index.js +++ b/src/components/RecipientsHeader/index.js @@ -26,7 +26,7 @@ function RecipientList(props) { { recipients.map(receiver => ( props.setDefaultRecipient(