summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src/components/Summary.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-09-25 17:44:08 +0200
committerSamy Pesse <samypesse@gmail.com>2016-09-25 17:44:08 +0200
commite46cd78f803891dfc8c304ea8ec4bc813ad16b5b (patch)
tree7c3711581cb151fc58b186ea45a8f7f691d190e7 /packages/gitbook-plugin-theme-default/src/components/Summary.js
parentfab88bb47e71ad47c928198ddbf7a4d0527e81bb (diff)
downloadgitbook-e46cd78f803891dfc8c304ea8ec4bc813ad16b5b.zip
gitbook-e46cd78f803891dfc8c304ea8ec4bc813ad16b5b.tar.gz
gitbook-e46cd78f803891dfc8c304ea8ec4bc813ad16b5b.tar.bz2
Fix core reducer destroying other reducers
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/components/Summary.js')
-rw-r--r--packages/gitbook-plugin-theme-default/src/components/Summary.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Summary.js b/packages/gitbook-plugin-theme-default/src/components/Summary.js
index e95b4b4..8c5c4a1 100644
--- a/packages/gitbook-plugin-theme-default/src/components/Summary.js
+++ b/packages/gitbook-plugin-theme-default/src/components/Summary.js
@@ -46,10 +46,12 @@ const SummaryPart = React.createClass({
const { part } = this.props;
const { title, articles } = part;
+ const titleEL = title ? <h2>{title}</h2> : null;
+
return (
<GitBook.InjectedComponent matching={{ role: 'summary:part' }} props={this.props}>
<div className="SummaryPart">
- {title}
+ {titleEL}
<SummaryArticles articles={articles} />
</div>
</GitBook.InjectedComponent>