Skip to content

Commit

Permalink
type(Sender): delete files assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ztkuaikuai committed Feb 10, 2025
1 parent c435808 commit 8183b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/sender/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const ForwardSender = React.forwardRef<SenderRef, SenderProps>((props, ref) => {
// ============================ Paste =============================
const onInternalPaste: React.ClipboardEventHandler<HTMLElement> = (e) => {
// Get files
const files = e.clipboardData?.files as FileList | undefined;
const files = e.clipboardData?.files;
if (files?.length && onPasteFile) {
onPasteFile(files[0], files);
e.preventDefault();
Expand Down

0 comments on commit 8183b87

Please sign in to comment.