From 0a87bf1b5edce23a235e4857ac81060cb040878b Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Wed, 23 Aug 2023 11:29:37 -0400 Subject: [PATCH] Apply JS formatting from npm prettier --- awx/ui/src/screens/Instances/Shared/InstanceForm.js | 3 ++- awx/ui/src/screens/TopologyView/MeshGraph.js | 7 +------ awx/ui/src/screens/TopologyView/utils/helpers.js | 4 +--- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/awx/ui/src/screens/Instances/Shared/InstanceForm.js b/awx/ui/src/screens/Instances/Shared/InstanceForm.js index 41776f0dec..5e1d988806 100644 --- a/awx/ui/src/screens/Instances/Shared/InstanceForm.js +++ b/awx/ui/src/screens/Instances/Shared/InstanceForm.js @@ -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), }); }} diff --git a/awx/ui/src/screens/TopologyView/MeshGraph.js b/awx/ui/src/screens/TopologyView/MeshGraph.js index e9d1272a8e..47567285af 100644 --- a/awx/ui/src/screens/TopologyView/MeshGraph.js +++ b/awx/ui/src/screens/TopologyView/MeshGraph.js @@ -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') diff --git a/awx/ui/src/screens/TopologyView/utils/helpers.js b/awx/ui/src/screens/TopologyView/utils/helpers.js index 6081e84285..84d78de289 100644 --- a/awx/ui/src/screens/TopologyView/utils/helpers.js +++ b/awx/ui/src/screens/TopologyView/utils/helpers.js @@ -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 = {