fix: add key to enable aggregate switch correct

This commit is contained in:
shinya
2025-07-03 13:26:13 +08:00
parent 44d65381a4
commit c678534722

View File

@@ -170,7 +170,10 @@ function SearchPageClient() {
</div>
</label>
</div>
<div className='justify-start grid grid-cols-3 gap-x-2 gap-y-14 sm:gap-y-20 px-0 sm:px-2 sm:grid-cols-[repeat(auto-fill,_minmax(11rem,_1fr))] sm:gap-x-8 sm:px-4'>
<div
key={`search-results-${viewMode}`}
className='justify-start grid grid-cols-3 gap-x-2 gap-y-14 sm:gap-y-20 px-0 sm:px-2 sm:grid-cols-[repeat(auto-fill,_minmax(11rem,_1fr))] sm:gap-x-8 sm:px-4'
>
{viewMode === 'agg'
? aggregatedResults.map((group) => {
const key = `${group[0].title}-${