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

Don't slice non-existent tags #4000

Merged
merged 1 commit into from
Dec 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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