mirror of
https://github.com/usememos/memos.git
synced 2025-12-11 06:36:02 +08:00
chore: fix lint on attachments
This commit is contained in:
parent
c9d44c0526
commit
46111277ea
1 changed files with 2 additions and 4 deletions
|
|
@ -6,9 +6,9 @@ import { useEffect, useState } from "react";
|
|||
import AttachmentIcon from "@/components/AttachmentIcon";
|
||||
import Empty from "@/components/Empty";
|
||||
import MobileHeader from "@/components/MobileHeader";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { attachmentServiceClient } from "@/grpcweb";
|
||||
import useLoading from "@/hooks/useLoading";
|
||||
import useResponsiveWidth from "@/hooks/useResponsiveWidth";
|
||||
|
|
@ -80,9 +80,7 @@ const Attachments = observer(() => {
|
|||
});
|
||||
setAttachments((prevAttachments) => [...prevAttachments, ...fetchedAttachments]);
|
||||
setNextPageToken(newPageToken ?? "");
|
||||
await Promise.all(
|
||||
fetchedAttachments.map((attachment) => (attachment.memo ? memoStore.getOrFetchMemoByName(attachment.memo) : null)),
|
||||
);
|
||||
await Promise.all(fetchedAttachments.map((attachment) => (attachment.memo ? memoStore.getOrFetchMemoByName(attachment.memo) : null)));
|
||||
} finally {
|
||||
setIsLoadingMore(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue