don't do anything if not rendered

pull/3094/head
yann300 6 years ago
parent 2b1f5156cb
commit 578af4e993
  1. 1
      src/app/tabs/runTab/contractDropdown.js

@ -72,6 +72,7 @@ class ContractDropdownUI {
}
changeCurrentFile (currentFile) {
if (!document.querySelector(`.${css.contractNames}`)) return
document.querySelector(`.${css.contractNames}`).classList.remove(css.contractNamesError)
var contractNames = document.querySelector(`.${css.contractNames.classNames[0]}`)
contractNames.innerHTML = ''

Loading…
Cancel
Save