Skip to content

Commit

Permalink
Wave errors fikset
Browse files Browse the repository at this point in the history
  • Loading branch information
thabz committed Jul 28, 2018
1 parent af7e4bc commit 7e84b40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export default class Tabs extends React.Component<TabsProps, TabsState> {
ref={domElement => {
this.searchField = domElement;
}}
title={placeholder}
defaultValue={query}
className="search-field"
placeholder={placeholder}
Expand Down
4 changes: 2 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ class News extends React.Component<NewsProps> {

const items = news.filter((_, i) => i < 5).map((item, i) => {
const { date, content_html, content_lang, title } = item;

const renderedTitle = title == null ? null : <h3>{title}</h3>;
return (
<div className="news-item" key={date + i}>
<h3>{title}</h3>
{renderedTitle}
<div className="news-body">
<TextContent
contentHtml={content_html}
Expand Down

0 comments on commit 7e84b40

Please sign in to comment.