cleaning up some minor mess...

This commit is contained in:
Marcell Mars 2021-04-24 01:16:31 +02:00
parent 79ab558529
commit ff7906260f

View file

@ -48,7 +48,6 @@
candidates = diffArrr(METASP[xastiers[0].split("has_")[1]].tiers, tiers) candidates = diffArrr(METASP[xastiers[0].split("has_")[1]].tiers, tiers)
} }
} }
// el.src = `mocka.js`
el.src = `../js/repo/${location.hash.substring(1)}.js` el.src = `../js/repo/${location.hash.substring(1)}.js`
document.body.appendChild(el) document.body.appendChild(el)
} }
@ -62,13 +61,11 @@
function addToTiersRemoveFromCandidates(v) { function addToTiersRemoveFromCandidates(v) {
console.log("addToTiers", v.detail) console.log("addToTiers", v.detail)
let value = v.detail let value = v.detail
// if (value != 1) {
const tier = candidates.filter(t => t.file == value) const tier = candidates.filter(t => t.file == value)
if (tier.length > 0) { if (tier.length > 0) {
tiers = [...tiers, tier[0]] tiers = [...tiers, tier[0]]
candidates = candidates.filter(t=> t != tier[0]) candidates = candidates.filter(t=> t != tier[0])
} }
// }
} }
onMount(()=> { onMount(()=> {