From 746a7cccaa6cd6934d22a9fd58a25f691f8052cb Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Thu, 23 Jun 2022 02:49:44 -0500 Subject: [PATCH] format ig --- src/pages/DownloadPage.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/DownloadPage.tsx b/src/pages/DownloadPage.tsx index 6f6905a9..768fb0a6 100644 --- a/src/pages/DownloadPage.tsx +++ b/src/pages/DownloadPage.tsx @@ -1,4 +1,4 @@ -import React, { Fragment, useEffect, useState } from "react"; +import React, { useEffect, useState } from "react"; import "../css/HomePage.css" import { Build, getBuilds, getJobs, Job } from "../util/Jenkins"; @@ -9,7 +9,7 @@ import { Container } from "react-bootstrap"; const DownloadPage = () => { const [jobs, setJobs] = useState(new Map()) - const [ version, setVersion ] = useState("1.19") + const [version, setVersion] = useState("1.19") useEffect(() => { doJobs().then(value => { }) @@ -21,7 +21,7 @@ const DownloadPage = () => { for (let job of value) { getBuilds(job.name).then(value1 => { setJobs(prevState => { - let map = new Map([ ...prevState, [ job, value1 ] ]) + let map = new Map([...prevState, [job, value1]]) if (map.size >= value.length) { let job = Array.from(map.keys()).sort((a, b) => parseFloat(a.name) - parseFloat(b.name)).reverse()[0] setVersion(job.name)