fixed lint issues.

This commit is contained in:
Harjeet Singh 2018-07-06 14:43:43 -07:00
parent b1dc621212
commit bc59d13a5c
3 changed files with 3 additions and 6 deletions

View File

@ -82,7 +82,7 @@ export class ConsoleViewer extends React.Component<ConsoleViewerProps, ConsoleVi
/*
* If we have a url like foo/bar/{uuid} uuid will be replaced with what user has typed in.
*/
addParamsToUrl(url: string, params: Array<FieldModel>) {
addParamsToUrl(url: string, params: FieldModel[]) {
const queryParamPrefix = '{';
const queryParamSuffix = '}';
@ -101,7 +101,7 @@ export class ConsoleViewer extends React.Component<ConsoleViewerProps, ConsoleVi
return url;
};
}
async invoke(endpoint, body, headers = {}) {
try {

View File

@ -41,9 +41,6 @@ export class Endpoint extends React.Component<EndpointProps, EndpointState> {
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 (
<OptionsContext.Consumer>

View File

@ -31,7 +31,7 @@ export class Field extends React.PureComponent<FieldProps> {
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);
};