Skip to content

Commit

Permalink
Format code before release
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed May 25, 2021
1 parent 58dd212 commit 457a950
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions otoroshi/javascript/src/pages/ServiceApiKeysPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,11 +643,13 @@ export class ServiceApiKeysPage extends Component {
parentProps={this.props}
selfUrl={`lines/${this.props.params.lineId}/services/${this.props.params.serviceId}/apikeys`}
defaultTitle="Service Api Keys"
defaultValue={() => BackOfficeServices.createNewApikey().then((apk) => ({
...apk,
clientName: `${faker.name.firstName()} ${faker.name.lastName()}'s api-key`,
authorizedEntities: this.state.service.groups.map((g) => 'group_' + g),
}))}
defaultValue={() =>
BackOfficeServices.createNewApikey().then((apk) => ({
...apk,
clientName: `${faker.name.firstName()} ${faker.name.lastName()}'s api-key`,
authorizedEntities: this.state.service.groups.map((g) => 'group_' + g),
}))
}
_defaultValue={() => ({
clientId: faker.random.alphaNumeric(16),
clientSecret: faker.random.alphaNumeric(64),
Expand Down

0 comments on commit 457a950

Please sign in to comment.