diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx index 9d6bfcd20..2aaee3971 100644 --- a/web/src/components/MemoEditor/index.tsx +++ b/web/src/components/MemoEditor/index.tsx @@ -54,9 +54,7 @@ const MemoEditorImpl: React.FC = ({ const { userGeneralSetting } = useAuth(); // Get default visibility from user settings - const defaultVisibility = userGeneralSetting?.memoVisibility - ? convertVisibilityFromString(userGeneralSetting.memoVisibility) - : undefined; + const defaultVisibility = userGeneralSetting?.memoVisibility ? convertVisibilityFromString(userGeneralSetting.memoVisibility) : undefined; useMemoInit(editorRef, memoName, cacheKey, currentUser?.name ?? "", autoFocus, defaultVisibility); diff --git a/web/src/components/MemoView/components/metadata/AttachmentCard.tsx b/web/src/components/MemoView/components/metadata/AttachmentCard.tsx index ce0efe758..2aadfb76c 100644 --- a/web/src/components/MemoView/components/metadata/AttachmentCard.tsx +++ b/web/src/components/MemoView/components/metadata/AttachmentCard.tsx @@ -1,6 +1,6 @@ import { cn } from "@/lib/utils"; import type { Attachment } from "@/types/proto/api/v1/attachment_service_pb"; -import { getAttachmentType, getAttachmentUrl, getColorspace } from "@/utils/attachment"; +import { getAttachmentType, getAttachmentUrl } from "@/utils/attachment"; interface AttachmentCardProps { attachment: Attachment; @@ -25,14 +25,7 @@ const AttachmentCard = ({ attachment, onClick, className }: AttachmentCardProps) } if (attachmentType === "video/*") { - return ( -