mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-03-15 02:27:29 +08:00
fix: search result key duplicate
This commit is contained in:
@@ -176,7 +176,7 @@ function SearchPageClient() {
|
|||||||
group[0].year || 'unknown'
|
group[0].year || 'unknown'
|
||||||
}`;
|
}`;
|
||||||
return (
|
return (
|
||||||
<div key={key} className='w-full'>
|
<div key={`agg-${key}`} className='w-full'>
|
||||||
<AggregateCard
|
<AggregateCard
|
||||||
items={group}
|
items={group}
|
||||||
query={searchQuery}
|
query={searchQuery}
|
||||||
@@ -186,7 +186,10 @@ function SearchPageClient() {
|
|||||||
);
|
);
|
||||||
})
|
})
|
||||||
: searchResults.map((item) => (
|
: searchResults.map((item) => (
|
||||||
<div key={item.id} className='w-full'>
|
<div
|
||||||
|
key={`all-${item.source}-${item.id}`}
|
||||||
|
className='w-full'
|
||||||
|
>
|
||||||
<VideoCard
|
<VideoCard
|
||||||
id={item.id}
|
id={item.id}
|
||||||
title={item.title}
|
title={item.title}
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const MobileBottomNav = ({ activePath }: MobileBottomNavProps) => {
|
|||||||
{navItems.map((item) => {
|
{navItems.map((item) => {
|
||||||
const active = isActive(item.href);
|
const active = isActive(item.href);
|
||||||
return (
|
return (
|
||||||
<li key={item.href} className='flex-shrink-0 w-1/4'>
|
<li key={item.href} className='flex-shrink-0 w-1/5'>
|
||||||
<Link
|
<Link
|
||||||
href={item.href}
|
href={item.href}
|
||||||
className='flex flex-col items-center justify-center w-full h-14 gap-1 text-xs'
|
className='flex flex-col items-center justify-center w-full h-14 gap-1 text-xs'
|
||||||
|
|||||||
Reference in New Issue
Block a user