From 87d3d5b1a7485f38015c1fa5dbc40af3ec69f230 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Sat, 7 Feb 2026 13:18:36 +0700 Subject: [PATCH] Force offers view when hub or supplier selected --- app/composables/useCatalogSearch.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/composables/useCatalogSearch.ts b/app/composables/useCatalogSearch.ts index c11f696..b9ceedc 100644 --- a/app/composables/useCatalogSearch.ts +++ b/app/composables/useCatalogSearch.ts @@ -235,11 +235,12 @@ export function useCatalogSearch() { const selectItem = (type: string, id: string, label: string) => { setLabel(type, id, label) + const forcedView = (type === 'hub' || type === 'supplier') ? null : (lastViewMode.value === 'offers' ? null : lastViewMode.value) updateQuery({ [type]: id, select: null, // Exit selection mode info: null, // Exit info mode - view: lastViewMode.value === 'offers' ? null : lastViewMode.value + view: forcedView }) }