From 18a2806fb1cfa51aa7d79f662d7a2e49501e0791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Fri, 5 Jun 2015 11:32:10 +0200 Subject: [PATCH] minor fixes --- js/components/ascribe_table/table.js | 2 +- js/components/edition.js | 5 ++++- js/mixins/inject_in_head_mixin.js | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/components/ascribe_table/table.js b/js/components/ascribe_table/table.js index 6a8f0c93..44ba5d61 100644 --- a/js/components/ascribe_table/table.js +++ b/js/components/ascribe_table/table.js @@ -15,7 +15,7 @@ let Table = React.createClass({ orderBy: React.PropTypes.string, orderAsc: React.PropTypes.bool, className: React.PropTypes.string, - children: React.PropTypes.object, + children: React.PropTypes.array, itemList: React.PropTypes.array }, diff --git a/js/components/edition.js b/js/components/edition.js index ebd0f176..9094e20b 100644 --- a/js/components/edition.js +++ b/js/components/edition.js @@ -97,7 +97,10 @@ let EditionDetails = React.createClass({ let EditionDetailProperty = React.createClass({ propTypes: { label: React.PropTypes.string, - value: React.PropTypes.string + value: React.PropTypes.oneOfType([ + React.PropTypes.string, + React.PropTypes.element + ]) }, render() { diff --git a/js/mixins/inject_in_head_mixin.js b/js/mixins/inject_in_head_mixin.js index f88fa035..42e3b6dc 100644 --- a/js/mixins/inject_in_head_mixin.js +++ b/js/mixins/inject_in_head_mixin.js @@ -44,7 +44,6 @@ let InjectInHeadMixin = { }, inject(src) { - //debugger; let ext = src.split('.').pop(); try { let tag = mapAttr(src);