Add keys to Accordion.Item components in ChatPanel
- Assign unique keys to Accordion.Item components in InputMessage.tsx. - Update MessageContainer.tsx to include keys for Accordion.Item components.
This commit is contained in:
parent
c60860559e
commit
09ab19289f
@ -76,7 +76,7 @@ const InputContexts = () => {
|
||||
contexts.map((item: any, index: number) => {
|
||||
const { context } = item;
|
||||
return (
|
||||
<Accordion.Item value={`item-${index}`} >
|
||||
<Accordion.Item key={`item-${index}`} value={`item-value-${index}`} >
|
||||
<Box sx={{
|
||||
display: 'flex', alignItems: 'center',
|
||||
backgroundColor: 'var(--vscode-menu-background)',
|
||||
|
@ -95,7 +95,7 @@ const MessageContext = (props: any) => {
|
||||
contexts?.map((item: any, index: number) => {
|
||||
const { context } = item;
|
||||
return (
|
||||
<Accordion.Item value={`item-${index}`} mah='200'>
|
||||
<Accordion.Item key={`item-${index}`} value={`item-value-${index}`} mah='200'>
|
||||
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
||||
<Accordion.Control >
|
||||
<Text truncate='end'>{'command' in context ? context.command : context.path}</Text>
|
||||
|
Loading…
x
Reference in New Issue
Block a user