Skip to content

Commit

Permalink
fix: Make compiler happy
Browse files Browse the repository at this point in the history
The type system was unhappy with the previous
code. When running locally in dev mode I
did not see any effect for this line.
  • Loading branch information
Kaushik Ghose committed Feb 22, 2019
1 parent c1a57dd commit 53d20e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class PlatformCredentialsModalComponent implements OnInit {
Validators.required,
(ctrl: AbstractControl) => {
const val = ctrl.value;
if (this.platformList.map(e => e.value).indexOf(val) === -1) {
if (!(val in AuthCredentials.platformLookupByAPIURL)) {
try {
const url = new URL(val);
if(url.hostname.endsWith(".sbgenomics.com")){
Expand Down

0 comments on commit 53d20e1

Please sign in to comment.