From 9d26939b8cf7b5671e7cbe3b8870f4385d85d98e Mon Sep 17 00:00:00 2001 From: Shebuka Date: Tue, 23 Jul 2024 14:13:24 +0200 Subject: [PATCH] Fixed items with a single grid --- src/features/items/do-fetch-items.mjs | 4 ++-- src/pages/item/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/items/do-fetch-items.mjs b/src/features/items/do-fetch-items.mjs index 6fcb6c0c..3ede2cc4 100644 --- a/src/features/items/do-fetch-items.mjs +++ b/src/features/items/do-fetch-items.mjs @@ -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) { diff --git a/src/pages/item/index.js b/src/pages/item/index.js index 587fff30..f5fcbd92 100644 --- a/src/pages/item/index.js +++ b/src/pages/item/index.js @@ -437,9 +437,9 @@ The max profitable price is impacted by the intel center and hideout management
{currentItemData.grid && ( )}