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; if (checkGuest()) return;
showItemDialog.value = true; showItemDialog.value = true;
const itemLots = await calcItem(item.id); const [itemLots, tags] = await Promise.all([
const tags = await getItemTags(item.id); calcItem(item.id),
getItemTags(item.id)
]);
item.lots = itemLots; item.lots = itemLots;
item.tags = tags; item.tags = tags;
selectedItem.value = item; selectedItem.value = item;