fix: update accordion item keys for improved uniqueness in FAQSection
This commit is contained in:
parent
0cd8d7c103
commit
5b2a3964ac
1 changed files with 5 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ const FAQSection = () => {
|
|||
<Accordion
|
||||
className="relative w-full rounded-lg bg-muted p-4"
|
||||
collapsible
|
||||
key={item.id}
|
||||
key={`accordion-${item.id}`}
|
||||
//defaultValue="0"
|
||||
type="single"
|
||||
>
|
||||
|
|
@ -87,7 +87,10 @@ const FAQSection = () => {
|
|||
<h3 className="font-semibold text-2xl">{item.label}</h3>
|
||||
<div className="flex flex-col gap-1">
|
||||
{item.qas.map((f, i) => (
|
||||
<AccordionItem key={item.id} value={i.toString()}>
|
||||
<AccordionItem
|
||||
key={`accordion-item-${item.id}-${i}`}
|
||||
value={i.toString()}
|
||||
>
|
||||
<AccordionTrigger className="text-left">
|
||||
{f.title}
|
||||
</AccordionTrigger>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue