pull/1/head
Liana Husikyan 5 years ago committed by GitHub
parent 33fd4b74eb
commit 132a3a3e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/app/tabs/compileTab/compilerContainer.js

@ -284,7 +284,7 @@ class CompilerContainer {
this._updateLanguageSelector()
}
_shouldBeAdded(version) {
_shouldBeAdded (version) {
return !version.includes('nightly') ||
(version.includes('nightly') && this._view.includeNightlies.checked)
}
@ -299,7 +299,7 @@ class CompilerContainer {
const option = build.path === this.data.selectedVersion
? yo`<option value="${build.path}" selected>${build.longVersion}</option>`
: yo`<option value="${build.path}">${build.longVersion}</option>`
if (this._shouldBeAdded(option.innerText)) {
this._view.versionSelector.appendChild(option)
}

Loading…
Cancel
Save