From bc59d13a5ca824bb483fb9e65dff5f3ea3424198 Mon Sep 17 00:00:00 2001 From: Harjeet Singh Date: Fri, 6 Jul 2018 14:43:43 -0700 Subject: [PATCH] fixed lint issues. --- src/components/Console/ConsoleViewer.tsx | 4 ++-- src/components/Endpoint/Endpoint.tsx | 3 --- src/components/Fields/Field.tsx | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/Console/ConsoleViewer.tsx b/src/components/Console/ConsoleViewer.tsx index 2f585ce1..0931a805 100644 --- a/src/components/Console/ConsoleViewer.tsx +++ b/src/components/Console/ConsoleViewer.tsx @@ -82,7 +82,7 @@ export class ConsoleViewer extends React.Component) { + addParamsToUrl(url: string, params: FieldModel[]) { const queryParamPrefix = '{'; const queryParamSuffix = '}'; @@ -101,7 +101,7 @@ export class ConsoleViewer extends React.Component { const { operation, inverted, hideHostname } = this.props; const { expanded } = this.state; - if (operation && operation.parameters && operation.parameters.length > 0) { - console.log('USER INPUT VALUE:: ' + operation.parameters[0]['$value']); - } // TODO: highlight server variables, e.g. https://{user}.test.com return ( diff --git a/src/components/Fields/Field.tsx b/src/components/Fields/Field.tsx index 158004d4..a20deecd 100644 --- a/src/components/Fields/Field.tsx +++ b/src/components/Fields/Field.tsx @@ -31,7 +31,7 @@ export class Field extends React.PureComponent { this.props.field.toggle(); }; - onFieldChange = (e) => { + onFieldChange = e => { console.log('Textfield value is ' + e.target.placeholder + ' - ' + e.target.value); this.props.field.setValue(e.target.value); };