fix: sync sortBy on initial nav coordination for popular tab

This commit is contained in:
Glary-Bot
2026-05-12 02:55:04 +00:00
parent 88bb7587ce
commit 6392a68ca2

View File

@@ -596,8 +596,7 @@ const coordinateNavAndSort = (source: 'nav' | 'sort') => {
}
}
// Watch for changes from the two sources ('nav' and 'sort') and trigger the coordinator.
watch(selectedNavItem, () => coordinateNavAndSort('nav'))
watch(selectedNavItem, () => coordinateNavAndSort('nav'), { immediate: true })
watch(sortBy, () => coordinateNavAndSort('sort'))
// Convert between string array and object array for MultiSelect component