Fix attachment lists
This commit is contained in:
		
							parent
							
								
									e6e537d002
								
							
						
					
					
						commit
						166fe6e6dd
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		|  | @ -40,12 +40,14 @@ export default class AttachmentList extends ImmutablePureComponent { | |||
|         </div> | ||||
| 
 | ||||
|         <ul className='attachment-list__list'> | ||||
|           {media.map(attachment => { | ||||
|             const displayUrl = attachment.get('remote_url') || attachment.get('url'); | ||||
| 
 | ||||
|           {media.map(attachment => { | ||||
|             return (<li key={attachment.get('id')}> | ||||
|             return ( | ||||
|               <li key={attachment.get('id')}> | ||||
|                 <a href={displayUrl} target='_blank' rel='noopener'>{filename(displayUrl)}</a> | ||||
|             </li>) | ||||
|               </li> | ||||
|             ); | ||||
|           })} | ||||
|         </ul> | ||||
|       </div> | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue