diff --git a/src/modules/market/components/CreateProductDialog.vue b/src/modules/market/components/CreateProductDialog.vue index b1f07c5..7e192d8 100644 --- a/src/modules/market/components/CreateProductDialog.vue +++ b/src/modules/market/components/CreateProductDialog.vue @@ -89,8 +89,9 @@
@@ -141,8 +142,8 @@
@@ -461,13 +462,13 @@ watch(() => props.isOpen, async (isOpen) => { use_autoreply: false, autoreply_message: '' } - + // Reset form with appropriate initial values resetForm({ values: initialValues }) - + // Wait for reactivity await nextTick() - + // Clear any previous errors createError.value = null } diff --git a/src/modules/market/components/MerchantStore.vue b/src/modules/market/components/MerchantStore.vue index 6bbcd80..1438b73 100644 --- a/src/modules/market/components/MerchantStore.vue +++ b/src/modules/market/components/MerchantStore.vue @@ -523,10 +523,12 @@ const loadStallProducts = async () => { })) stallProducts.value = enrichedProducts - // Also add them to the market store so they appear in the main market - enrichedProducts.forEach(product => { - marketStore.addProduct(product) - }) + // Only add active products to the market store so they appear in the main market + enrichedProducts + .filter(product => product.active) + .forEach(product => { + marketStore.addProduct(product) + }) } catch (error) { console.error('Failed to load products:', error) stallProducts.value = []