Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Don't slice non-existent tags (#4000)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored and gavofyork committed Dec 29, 2016
1 parent b5f6162 commit 37c607d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion js/src/ui/Tags/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion js/src/views/Account/Header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37c607d

Please sign in to comment.