Revert "for #761, fix linting errors"

This reverts commit 8952d760d0.
This commit is contained in:
Cassie Tarakajian 2018-11-15 15:54:31 -05:00
parent 8952d760d0
commit ef7231fe03
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,7 @@ class Console extends React.Component {
</div> </div>
<div ref={(element) => { this.consoleMessages = element; }} className="preview-console__messages"> <div ref={(element) => { this.consoleMessages = element; }} className="preview-console__messages">
{this.props.consoleEvents.map((consoleEvent) => { {this.props.consoleEvents.map((consoleEvent) => {
const { method, times } = consoleEvent; const { data: args, method, times } = consoleEvent;
const { theme } = this.props; const { theme } = this.props;
return ( return (
<div key={consoleEvent.id} className={`preview-console__message preview-console__message--${method}`}> <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) { handleConsoleEvent(messageEvent) {
if (Array.isArray(messageEvent.data)) { if (Array.isArray(messageEvent.data)) {
const decodedMessages = messageEvent.data.map(message => Decode(message.log)); let decodedMessages = messageEvent.data.map(message => Decode(message.log));
decodedMessages.every((message, index, arr) => { decodedMessages.every((message, index, arr) => {
const { data: args } = message; const { data: args } = message;