fix: fixed the stale collection and icon used on navigation between collection (#385)

Co-authored-by: kj-bonami <krishna.jha@bonamisoftware.com>
This commit is contained in:
Krishna Kumar Jha 2026-01-06 09:49:29 +05:30 committed by GitHub
parent 5d84a71493
commit 5debe320d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -284,6 +284,7 @@ useEventListener(categoriesContainer, 'wheel', (e: WheelEvent) => {
<!-- Icons -->
<div class="px-5 pt-2 pb-4 text-center">
<Icons
:key="namespace"
:icons="icons.slice(0, max)"
:selected="bags"
:class="iconSize"

View File

@ -111,7 +111,7 @@ export function useSearch(collection: Ref<CollectionMeta | null>) {
const debouncedSearch = useDebounceFn(runSearch, 200)
watch([category, variant], () => {
watch([category, variant, () => collection.value?.id], () => {
runSearch()
})