From 2139ed8973f8793af1eef5e465b21710df8ea4bb Mon Sep 17 00:00:00 2001 From: Alex Eftimie Date: Thu, 27 May 2021 07:06:55 +0200 Subject: [PATCH] Fix lint --- web/package.json | 2 +- web/src/screens/repo/screens/builds/index.js | 21 +++++++++++++------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/web/package.json b/web/package.json index 62609bdf0..a5d62596a 100644 --- a/web/package.json +++ b/web/package.json @@ -9,7 +9,7 @@ "lesshint": "lesshint --config .lesshintrc src/", "test": "jest", "start": "webpack-dev-server --progress --hot --inline", - "format": "prettier --use-tabs --trailing-comma all --write {src/*.js,src/**/*.js,src/**/*/*.js,src/*/*/*/*.js,src/*/*/*/*/*.js,src/*/*/*/*/*/*.js,src/*/*/*/*/*/*.js,src/*/*/*/*/*/*/*.js}" + "format": "prettier --trailing-comma all --write {src/*.js,src/**/*.js,src/**/*/*.js,src/*/*/*/*.js,src/*/*/*/*/*.js,src/*/*/*/*/*/*.js,src/*/*/*/*/*/*.js,src/*/*/*/*/*/*/*.js}" }, "jest": { "moduleFileExtensions": [ diff --git a/web/src/screens/repo/screens/builds/index.js b/web/src/screens/repo/screens/builds/index.js index 303493a40..787c01e42 100644 --- a/web/src/screens/repo/screens/builds/index.js +++ b/web/src/screens/repo/screens/builds/index.js @@ -28,7 +28,7 @@ export default class Main extends Component { super(props, context); this.fetchNextBuildPage = this.fetchNextBuildPage.bind(this); - this.selectBranch = this.selectBranch.bind(this) + this.selectBranch = this.selectBranch.bind(this); } componentWillMount() { @@ -102,7 +102,7 @@ export default class Main extends Component { const filterBranch = (build) => { return !branch || build.branch === branch; - } + }; if (error) { return
Not Found
; @@ -123,12 +123,19 @@ export default class Main extends Component { return (
- {!branch ? - : - - } + {!branch ? ( + + ) : ( + + )}
- {list.sort(compareBuild).filter(filterBranch).map(renderBuild)} + + {list.sort(compareBuild).filter(filterBranch).map(renderBuild)} + {list.length < repo.last_build && (