0
1
Fork 0

Add promise all in catalog

This commit is contained in:
William Buezas 2024-12-05 18:39:33 -03:00
parent 41196b4a23
commit 09866f5b41
1 changed files with 4 additions and 2 deletions

View File

@ -771,8 +771,10 @@ const showItem = async item => {
if (checkGuest()) return;
showItemDialog.value = true;
const itemLots = await calcItem(item.id);
const tags = await getItemTags(item.id);
const [itemLots, tags] = await Promise.all([
calcItem(item.id),
getItemTags(item.id)
]);
item.lots = itemLots;
item.tags = tags;
selectedItem.value = item;