Skip to content

Commit 6289006

Browse files
committed
Fixing Attachment opening in input bug
1 parent fbcdf8d commit 6289006

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/jupyter-chat/src/components/attachments.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import CloseIcon from '@mui/icons-material/Close';
77
import { Box, Button, Tooltip } from '@mui/material';
88
import React from 'react';
99
import { PathExt } from '@jupyterlab/coreutils';
10-
import { UUID } from '@lumino/coreutils';
1110

1211
import { useChatContext } from '../context';
1312
import { IAttachment } from '../types';
@@ -66,7 +65,7 @@ export function AttachmentPreviewList(props: AttachmentsProps): JSX.Element {
6665
>
6766
{props.attachments.map(attachment => (
6867
<AttachmentPreview
69-
key={`${PathExt.basename(attachment.value)}-${UUID.uuid4()}`}
68+
key={attachment.value}
7069
{...props}
7170
attachment={attachment}
7271
/>

0 commit comments

Comments
 (0)