Don't slice non-existent tags (#4000)
This commit is contained in:
		
							parent
							
								
									b5f6162630
								
							
						
					
					
						commit
						37c607d7b0
					
				| @ -16,13 +16,15 @@ | ||||
| 
 | ||||
| import React, { Component, PropTypes } from 'react'; | ||||
| 
 | ||||
| import { arrayOrObjectProptype } from '~/util/proptypes'; | ||||
| 
 | ||||
| import styles from './tags.css'; | ||||
| 
 | ||||
| export default class Tags extends Component { | ||||
|   static propTypes = { | ||||
|     handleAddSearchToken: PropTypes.func, | ||||
|     setRefs: PropTypes.func, | ||||
|     tags: PropTypes.array | ||||
|     tags: arrayOrObjectProptype() | ||||
|   } | ||||
| 
 | ||||
|   render () { | ||||
|  | ||||
| @ -72,7 +72,7 @@ export default class Header extends Component { | ||||
|           </div> | ||||
| 
 | ||||
|           <div className={ styles.tags }> | ||||
|             <Tags tags={ meta.tags.slice() } /> | ||||
|             <Tags tags={ meta.tags } /> | ||||
|           </div> | ||||
|           <div className={ styles.balances }> | ||||
|             <Balance | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user