Resolves #127 Fix entities order in card

This commit is contained in:
Yegor Vialov 2018-10-07 10:36:50 +03:00
parent bc1f4eab2e
commit ec71200ab0

View File

@ -61,9 +61,11 @@ class EntityCollection {
List<Entity> getAll(List ids) {
List<Entity> result = [];
_entities.forEach((id, Entity entity){
if (ids.contains(id)) {
result.add(entity);
//TODO optimize this
ids.forEach((id){
Entity en = get(id);
if (en != null) {
result.add(en);
}
});
return result;