for #761, fix linting errors

This commit is contained in:
Cassie Tarakajian 2018-11-15 14:43:36 -05:00
parent 9105249c23
commit 8952d760d0
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,7 @@ class Console extends React.Component {
</div>
<div ref={(element) => { this.consoleMessages = element; }} className="preview-console__messages">
{this.props.consoleEvents.map((consoleEvent) => {
const { data: args, method, times } = consoleEvent;
const { method, times } = consoleEvent;
const { theme } = this.props;
return (
<div key={consoleEvent.id} className={`preview-console__message preview-console__message--${method}`}>

View file

@ -81,7 +81,7 @@ class PreviewFrame extends React.Component {
handleConsoleEvent(messageEvent) {
if (Array.isArray(messageEvent.data)) {
let decodedMessages = messageEvent.data.map(message => Decode(message.log));
const decodedMessages = messageEvent.data.map(message => Decode(message.log));
decodedMessages.every((message, index, arr) => {
const { data: args } = message;