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:
+4
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user