We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbcdf8d commit 6289006Copy full SHA for 6289006
packages/jupyter-chat/src/components/attachments.tsx
@@ -7,7 +7,6 @@ import CloseIcon from '@mui/icons-material/Close';
7
import { Box, Button, Tooltip } from '@mui/material';
8
import React from 'react';
9
import { PathExt } from '@jupyterlab/coreutils';
10
-import { UUID } from '@lumino/coreutils';
11
12
import { useChatContext } from '../context';
13
import { IAttachment } from '../types';
@@ -66,7 +65,7 @@ export function AttachmentPreviewList(props: AttachmentsProps): JSX.Element {
66
65
>
67
{props.attachments.map(attachment => (
68
<AttachmentPreview
69
- key={`${PathExt.basename(attachment.value)}-${UUID.uuid4()}`}
+ key={attachment.value}
70
{...props}
71
attachment={attachment}
72
/>
0 commit comments