Fix problem with unlockedLemmas that prevented grammar popups (#3832)
* Fix problem with unlockedLemmas that prevented grammar popups * don't convert set into list --------- Co-authored-by: ggurdin <ggurdin@gmail.com> Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
This commit is contained in:
parent
58e6aa3298
commit
a446229242
1 changed files with 2 additions and 3 deletions
|
|
@ -217,10 +217,9 @@ class ConstructListModel {
|
|||
}) {
|
||||
final constructs = constructList(type: type);
|
||||
final List<ConstructIdentifier> unlocked = [];
|
||||
final constructsList = [];
|
||||
// type == ConstructTypeEnum.vocab ? _vocabLemmasList : _grammarLemmasList;
|
||||
final constructsSet = constructList(type: type).map((e) => e.lemma).toSet();
|
||||
|
||||
for (final lemma in constructsList) {
|
||||
for (final lemma in constructsSet) {
|
||||
final matches = constructs.where((m) => m.lemma == lemma);
|
||||
final totalPoints = matches.fold<int>(
|
||||
0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue