Skip to content

Commit

Permalink
TS
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Oct 4, 2022
1 parent 1a7d658 commit cf58ce1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ messageBox.actions.add('Add_files_from', 'Computer', {
};
});

fileUpload(filesToUpload, $('.js-input-message', messageBox).get(0) as HTMLTextAreaElement | undefined, { rid, tmid });
fileUpload(filesToUpload, $('.js-input-message', messageBox).get(0) as HTMLTextAreaElement, { rid, tmid });
$input.remove();
});

Expand Down
2 changes: 1 addition & 1 deletion apps/meteor/app/ui/client/lib/fileUpload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export type FileUploadProp = SingleOrArray<{
/* @deprecated */
export const fileUpload = async (
f: FileUploadProp,
input: HTMLInputElement | ArrayLike<HTMLInputElement>,
input: HTMLInputElement | ArrayLike<HTMLInputElement> | HTMLTextAreaElement,
{
rid,
tmid,
Expand Down

0 comments on commit cf58ce1

Please sign in to comment.