diff --git a/cms/src/views/CmsProductDetailView.vue b/cms/src/views/CmsProductDetailView.vue index 0d41dfd..254af29 100644 --- a/cms/src/views/CmsProductDetailView.vue +++ b/cms/src/views/CmsProductDetailView.vue @@ -201,8 +201,6 @@ onBeforeMount(async () => { productForm.descriptionHtml = currentProduct.value.descriptionHtml; productForm.isDraft = currentProduct.value.isDraft; selectedCategoryIds.value = (currentProduct.value.categories ?? []).map(c => c.id); - - productFormRef.value?.clearValidate(); } } catch { loadError.value = true; diff --git a/cms/src/views/CmsProductsView.vue b/cms/src/views/CmsProductsView.vue index 92c5226..28af0c6 100644 --- a/cms/src/views/CmsProductsView.vue +++ b/cms/src/views/CmsProductsView.vue @@ -9,6 +9,7 @@ @@ -89,7 +91,6 @@ import { useProductsStore } from '@/stores/products'; import type { Category } from '@/types/product/Category'; import type { ProductWithVariantsExtended } from '@/types/product/ProductWithVariantsExtended'; import { DeliveryMode } from '@/types/product/DeliveryMode'; -import { HttpStatusCode, isAxiosError } from 'axios'; import { formatDate } from '@/utils/formatDate'; import { formatDeliveryMode } from '@/utils/product/formatDeliveryMode'; import { getProductTitle } from '@/utils/product/getProductTitle'; @@ -127,10 +128,8 @@ const loadProducts = async (): Promise => { total.value = data.total; page.value = data.page; limit.value = data.limit; - } catch (e) { - if (!isAxiosError(e) || e.response?.status !== HttpStatusCode.Unauthorized) { - ElMessage.error('Failed to load products'); - } + } catch { + ElMessage.error('Failed to load products'); } finally { loading.value = false; }