fix: editBannerNoExpiry load inventory before opening edit modal

currentInventory is empty on dashboard. Fetch inventory_list first
(same pattern as editReviewItem and weighBannerItem).
This commit is contained in:
dadaloop82
2026-05-11 16:57:00 +00:00
parent e3975b7d2e
commit 8407dea781
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -3941,7 +3941,10 @@ function editBannerNoExpiry() {
const entry = _bannerQueue[_bannerIndex];
if (!entry || entry.type !== 'no_expiry') return;
_bannerEditPending = true;
editInventoryItem(entry.data.id);
api('inventory_list').then(data => {
currentInventory = data.inventory || [];
editInventoryItem(entry.data.id);
});
}
function editBannerReview() {