Fix travis not validating UI (#653)

* Fix travis not validating UI
* Fix lint errors
This commit is contained in:
WithoutPants 2020-07-06 08:58:35 +10:00 committed by GitHub
parent f1c544affb
commit 54430dbc11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ before_install:
- nvm install 12
- travis_retry make pre-ui
- make generate
- CI=false make ui-only
- CI=false make ui-validate ui-only
#- go get -v github.com/mgechev/revive
script:
# left lint off to avoid getting extra dependency

View File

@ -222,7 +222,7 @@ export const SceneScrapeDialog: React.FC<ISceneScrapeDialogProps> = (
// sort by id numerically
ret.sort((a, b) => {
return parseInt(a) - parseInt(b);
return parseInt(a, 10) - parseInt(b, 10);
});
return ret;
@ -236,7 +236,7 @@ export const SceneScrapeDialog: React.FC<ISceneScrapeDialogProps> = (
const ret = _.clone(idList);
// sort by id numerically
ret.sort((a, b) => {
return parseInt(a) - parseInt(b);
return parseInt(a, 10) - parseInt(b, 10);
});
return ret;