From c792f7d29f317079c5e0ce1fff97fc5480903fbc Mon Sep 17 00:00:00 2001 From: Nat Alison Date: Mon, 25 Feb 2019 15:56:53 -0800 Subject: [PATCH] Fix eslint errors (#1734) --- src/components/CodeEditor/CodeEditor.js | 2 +- src/templates/components/Sidebar/Section.js | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/CodeEditor/CodeEditor.js b/src/components/CodeEditor/CodeEditor.js index 6e42fff7..39ebe8f1 100644 --- a/src/components/CodeEditor/CodeEditor.js +++ b/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, diff --git a/src/templates/components/Sidebar/Section.js b/src/templates/components/Sidebar/Section.js index 94ad877f..d48ed8e4 100644 --- a/src/templates/components/Sidebar/Section.js +++ b/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,