From 057a278d1916a29aba4f970f6450d0db7316ff11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Wed, 9 Dec 2015 13:21:55 +0100 Subject: [PATCH] In EditionStore use empty object instead of null as default state --- js/components/ascribe_detail/edition_container.js | 4 ++-- js/stores/edition_store.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/components/ascribe_detail/edition_container.js b/js/components/ascribe_detail/edition_container.js index a1fa7f58..f72b47f9 100644 --- a/js/components/ascribe_detail/edition_container.js +++ b/js/components/ascribe_detail/edition_container.js @@ -87,8 +87,8 @@ let EditionContainer = React.createClass({ }, render() { - const {edition, currentUser, coaMeta} = this.state; - if (edition && edition.id && currentUser && currentUser.email) { + const { edition, currentUser, coaMeta } = this.state; + if (Object.keys(edition).length && edition.id && currentUser && currentUser.email) { setDocumentTitle([edition.artist_name, edition.title].join(', ')); return (