Fix pool selection
This commit is contained in:
parent
5f941efa38
commit
2e4d34599f
1 changed files with 2 additions and 3 deletions
|
|
@ -152,11 +152,10 @@ export class PoolService {
|
||||||
* Update role pool
|
* Update role pool
|
||||||
*/
|
*/
|
||||||
updatePool() {
|
updatePool() {
|
||||||
let pool = [];
|
this.rolesPool = [];
|
||||||
this.championsPool.forEach(champion => {
|
this.championsPool.forEach(champion => {
|
||||||
pool = _.union(this.rolesPool, champion.roles);
|
this.rolesPool = _.union(this.rolesPool, champion.roles);
|
||||||
});
|
});
|
||||||
this.rolesPool = pool;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue