From d43564481d1e35ea8bb92310d20bff2989ca6ea7 Mon Sep 17 00:00:00 2001 From: Nikita Kiselev Date: Mon, 25 May 2026 09:24:29 +0300 Subject: [PATCH] fix(spa): handle empty category and products in carousel block Render the products carousel block gracefully when category_id is missing or when the selected category has no products, instead of throwing Vue Router's "Missing required param 'category_id'" error. --- .../MainPage/Blocks/ProductsCarouselBlock.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/frontend/spa/src/components/MainPage/Blocks/ProductsCarouselBlock.vue b/frontend/spa/src/components/MainPage/Blocks/ProductsCarouselBlock.vue index b0c36c42..4f7ab79e 100644 --- a/frontend/spa/src/components/MainPage/Blocks/ProductsCarouselBlock.vue +++ b/frontend/spa/src/components/MainPage/Blocks/ProductsCarouselBlock.vue @@ -2,10 +2,23 @@ + +