Skip to content

Commit

Permalink
chore: allow modifying entrymap in category provider
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jun 16, 2024
1 parent f296dc1 commit 53f970a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
public abstract class CategoryProvider extends ModonomiconProviderBase {

protected final ModonomiconProviderBase parent;
protected final CategoryEntryMap entryMap;
protected final Map<String, List<BookPageModel>> cachedPages = new Object2ObjectOpenHashMap<>();
protected CategoryEntryMap entryMap;
protected BookCategoryModel category;
protected int currentSortIndex;

Expand Down Expand Up @@ -191,13 +191,13 @@ public BookCategoryModel generate() {
this.context().category(this.categoryId());

var map = this.generateEntryMap();
if(map != null && map.length > 0)
if (map != null && map.length > 0)
this.entryMap().setMap(this.generateEntryMap());

var category = BookCategoryModel.create(
this.modLoc(this.context().categoryId()),
this.context().categoryName()
);
this.modLoc(this.context().categoryId()),
this.context().categoryName()
);

this.add(this.context().categoryName(), this.categoryName());
var categoryDescription = this.categoryDescription();
Expand Down

0 comments on commit 53f970a

Please sign in to comment.