Browse Source

Fix eslint errors (#1734)

main
Nat Alison 6 years ago
committed by Brian Vaughn
parent
commit
c792f7d29f
  1. 2
      src/components/CodeEditor/CodeEditor.js
  2. 5
      src/templates/components/Sidebar/Section.js

2
src/components/CodeEditor/CodeEditor.js

@ -43,7 +43,7 @@ class CodeEditor extends Component {
}
render() {
const {children, containerNodeID} = this.props;
const {containerNodeID} = this.props;
const {
compiledES6,
code,

5
src/templates/components/Sidebar/Section.js

@ -81,10 +81,7 @@ class Section extends React.Component {
? activeItemId === item.id
: isItemActive(location, item),
item: section.isOrdered
? {
...item,
title: `${index + 1}. ${item.title}`,
}
? {...item, title: `${index + 1}. ${item.title}`}
: item,
location,
onLinkClick,

Loading…
Cancel
Save