Skip to content

Commit

Permalink
Merge pull request #218 from Sidekick-Poe/bugfix/poewiki-map-fix
Browse files Browse the repository at this point in the history
Fix poewiki map info
  • Loading branch information
leMicin authored Aug 4, 2024
2 parents bf866d0 + 7cc8a9c commit d2cbb97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Sidekick.Apis.PoeWiki/PoeWikiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public async Task Initialize()
new("join_on", "items._pageID=maps._pageID,maps.area_id=areas.id"),
new("fields", "items.name,maps.area_id,areas.boss_monster_ids,items.drop_monsters"),
new("group_by", "items.name"),
new("where", @$"items.name=""{mapType}"""),
new("where", @$"items.name=""{mapType}"" AND items.drop_enabled = true"),
});

using var client = GetHttpClient();
Expand Down
2 changes: 1 addition & 1 deletion src/Sidekick.Modules.Maps/PoeWikiMapInfo.razor
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ else

protected override async Task OnInitializedAsync()
{
Map = await PoeWikiClient.GetMap(Type ?? Name);
Map = await PoeWikiClient.GetMap(Name ?? Type);
Loading = false;
}

Expand Down

0 comments on commit d2cbb97

Please sign in to comment.