Skip to content

Commit

Permalink
Fixed items with a single grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Shebuka committed Jul 23, 2024
1 parent 5e8aa3c commit 9d26939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/features/items/do-fetch-items.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -478,12 +478,12 @@ class ItemsQuery extends APIQuery {
gridPockets = itemGrids[rawItem.id];
}
else if (rawItem.properties.grids.length === 1) {
gridPockets = {
gridPockets = [{
row: 0,
col: 0,
width: rawItem.properties.grids[0].width,
height: rawItem.properties.grids[0].height,
};
}];
}

if (gridPockets.length > 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/item/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,9 @@ The max profitable price is impacted by the intel center and hideout management
<div className="icon-and-link-wrapper">
{currentItemData.grid && (
<CanvasGrid
width={currentItemData.grid.width}
height={currentItemData.grid.height}
grid={currentItemData.grid.pockets}
width={currentItemData.grid.width}
/>
)}
<ItemImage
Expand Down

0 comments on commit 9d26939

Please sign in to comment.