fix: getRoute

This commit is contained in:
Jean-Baptiste Pasquier 2021-05-20 16:56:58 +02:00
parent 03f67009ab
commit b7085a171e

View File

@ -1,5 +1,5 @@
window.hubl.getRoute = (type, returnFirst = false) => {
let availables = components.filter(c=>c.type==type||c.uniq==type);
let availables = window.hubl.components.filter(c=>c.type==type||c.uniq==type);
availables.map(c => {
if(c.extensions) {
c.extensions.forEach(e => availables.push(e.type));