mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 14:14:56 +03:00
fixed lint issues.
This commit is contained in:
parent
b1dc621212
commit
bc59d13a5c
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user