mirror of https://github.com/usememos/memos.git
Merge 0c1f462233 into 156908c77f
This commit is contained in:
commit
f15e46cb6e
|
|
@ -1,6 +1,7 @@
|
||||||
import copy from "copy-to-clipboard";
|
import copy from "copy-to-clipboard";
|
||||||
import { isEqual } from "lodash-es";
|
import { isEqual } from "lodash-es";
|
||||||
import { LoaderIcon } from "lucide-react";
|
import { LoaderIcon } from "lucide-react";
|
||||||
|
import mime from "mime";
|
||||||
import { observer } from "mobx-react-lite";
|
import { observer } from "mobx-react-lite";
|
||||||
import React, { useEffect, useMemo, useRef, useState } from "react";
|
import React, { useEffect, useMemo, useRef, useState } from "react";
|
||||||
import { toast } from "react-hot-toast";
|
import { toast } from "react-hot-toast";
|
||||||
|
|
@ -208,7 +209,7 @@ const MemoEditor = observer((props: Props) => {
|
||||||
attachment: Attachment.fromPartial({
|
attachment: Attachment.fromPartial({
|
||||||
filename,
|
filename,
|
||||||
size,
|
size,
|
||||||
type,
|
type || mime.getType(filename) || "text/plain",
|
||||||
content: buffer,
|
content: buffer,
|
||||||
}),
|
}),
|
||||||
attachmentId: "",
|
attachmentId: "",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue