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 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 () {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user