Resolves #127 Fix entities order in card
This commit is contained in:
parent
bc1f4eab2e
commit
ec71200ab0
@ -61,9 +61,11 @@ class EntityCollection {
|
|||||||
|
|
||||||
List<Entity> getAll(List ids) {
|
List<Entity> getAll(List ids) {
|
||||||
List<Entity> result = [];
|
List<Entity> result = [];
|
||||||
_entities.forEach((id, Entity entity){
|
//TODO optimize this
|
||||||
if (ids.contains(id)) {
|
ids.forEach((id){
|
||||||
result.add(entity);
|
Entity en = get(id);
|
||||||
|
if (en != null) {
|
||||||
|
result.add(en);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
|
Reference in New Issue
Block a user