fix: getRoute last

This commit is contained in:
Jean-Baptiste Pasquier 2021-05-20 16:46:14 +02:00
parent ec920a273a
commit d397040d59
1 changed files with 1 additions and 1 deletions

View File

@ -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}`);