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