Fix jsx key issue
This commit is contained in:
		
							parent
							
								
									9ebeb7f12f
								
							
						
					
					
						commit
						7ccc5be9b4
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -467,10 +467,8 @@ const PublishDialog = (props) => { | ||||||
|                     "aria-label": t("publish_dialog_call_label"), |                     "aria-label": t("publish_dialog_call_label"), | ||||||
|                   }} |                   }} | ||||||
|                 > |                 > | ||||||
|                   {account?.phone_numbers?.map((phoneNumber, i) => ( |                   {account?.phone_numbers?.map((phoneNumber) => ( | ||||||
|                     // TODO(eslint): Possibly just use the phone number as a key? |                     <MenuItem key={phoneNumber} value={phoneNumber} aria-label={phoneNumber}> | ||||||
|                     // eslint-disable-next-line react/no-array-index-key |  | ||||||
|                     <MenuItem key={`phoneNumberMenuItem${i}`} value={phoneNumber} aria-label={phoneNumber}> |  | ||||||
|                       {t("publish_dialog_call_item", { number: phoneNumber })} |                       {t("publish_dialog_call_item", { number: phoneNumber })} | ||||||
|                     </MenuItem> |                     </MenuItem> | ||||||
|                   ))} |                   ))} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue