Don't slice non-existent tags (#4000)

This commit is contained in:
Jaco Greeff 2016-12-29 21:01:36 +01:00 committed by Gav Wood
parent b5f6162630
commit 37c607d7b0
2 changed files with 4 additions and 2 deletions

View File

@ -16,13 +16,15 @@
import React, { Component, PropTypes } from 'react'; import React, { Component, PropTypes } from 'react';
import { arrayOrObjectProptype } from '~/util/proptypes';
import styles from './tags.css'; import styles from './tags.css';
export default class Tags extends Component { export default class Tags extends Component {
static propTypes = { static propTypes = {
handleAddSearchToken: PropTypes.func, handleAddSearchToken: PropTypes.func,
setRefs: PropTypes.func, setRefs: PropTypes.func,
tags: PropTypes.array tags: arrayOrObjectProptype()
} }
render () { render () {

View File

@ -72,7 +72,7 @@ export default class Header extends Component {
</div> </div>
<div className={ styles.tags }> <div className={ styles.tags }>
<Tags tags={ meta.tags.slice() } /> <Tags tags={ meta.tags } />
</div> </div>
<div className={ styles.balances }> <div className={ styles.balances }>
<Balance <Balance