From 37c607d7b0cd536063dccfde0e92f4390f2f4d1d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 29 Dec 2016 21:01:36 +0100 Subject: [PATCH] Don't slice non-existent tags (#4000) --- js/src/ui/Tags/tags.js | 4 +++- js/src/views/Account/Header/header.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/src/ui/Tags/tags.js b/js/src/ui/Tags/tags.js index 63b31fea1..bc86e6f3b 100644 --- a/js/src/ui/Tags/tags.js +++ b/js/src/ui/Tags/tags.js @@ -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 () { diff --git a/js/src/views/Account/Header/header.js b/js/src/views/Account/Header/header.js index 9245e0a1a..058c20db3 100644 --- a/js/src/views/Account/Header/header.js +++ b/js/src/views/Account/Header/header.js @@ -72,7 +72,7 @@ export default class Header extends Component {
- +