This commit is contained in:
Dmytro Manchynskyi 2025-11-15 20:04:05 +07:00 committed by GitHub
commit f15e46cb6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import copy from "copy-to-clipboard";
import { isEqual } from "lodash-es";
import { LoaderIcon } from "lucide-react";
import mime from "mime";
import { observer } from "mobx-react-lite";
import React, { useEffect, useMemo, useRef, useState } from "react";
import { toast } from "react-hot-toast";
@ -208,7 +209,7 @@ const MemoEditor = observer((props: Props) => {
attachment: Attachment.fromPartial({
filename,
size,
type,
type || mime.getType(filename) || "text/plain",
content: buffer,
}),
attachmentId: "",