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 { 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 () {

View File

@ -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