fix: getRoute last
This commit is contained in:
parent
ec920a273a
commit
d397040d59
@ -16,7 +16,7 @@
|
|||||||
if(returnFirst) {
|
if(returnFirst) {
|
||||||
return availables[0].route;
|
return availables[0].route;
|
||||||
} else {
|
} else {
|
||||||
console.error(`Too much components availables for route ${type}`);
|
return availables[availables.length-1] .route;
|
||||||
}
|
}
|
||||||
} else if(availables.length < 1) {
|
} else if(availables.length < 1) {
|
||||||
console.error(`No component found for route ${type}`);
|
console.error(`No component found for route ${type}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user