Skip to content

Commit

Permalink
Apply JS formatting from npm prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterseth committed Aug 23, 2023
1 parent 17f3e4b commit cb395f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
3 changes: 2 additions & 1 deletion awx/ui/src/screens/Instances/Shared/InstanceForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ function InstanceForm({
onSubmit={(values) => {
handleSubmit({
...values,
listener_port: values.listener_port === '' ? null : values.listener_port,
listener_port:
values.listener_port === '' ? null : values.listener_port,
peers: values.peers.map((peer) => peer.hostname || peer),
});
}}
Expand Down
7 changes: 1 addition & 6 deletions awx/ui/src/screens/TopologyView/MeshGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,7 @@ function MeshGraph({
mesh
.append('defs')
.selectAll('marker')
.data([
'end',
'end-active',
'end-adding',
'end-removing',
])
.data(['end', 'end-active', 'end-adding', 'end-removing'])
.join('marker')
.attr('id', String)
.attr('viewBox', '0 -5 10 10')
Expand Down
4 changes: 1 addition & 3 deletions awx/ui/src/screens/TopologyView/utils/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ export function getRandomInt(min, max) {
const generateRandomLinks = (n, r) => {
const links = [];
function getRandomLinkState() {
return ['established', 'adding', 'removing'][
getRandomInt(0, 3)
];
return ['established', 'adding', 'removing'][getRandomInt(0, 3)];
}
for (let i = 0; i < r; i++) {
const link = {
Expand Down

0 comments on commit cb395f0

Please sign in to comment.