Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

fix: type Post edit attachments (#5905)

authored by yoginth.com and committed by

GitHub 0154893f 4fa90c97

+2 -1
+2 -1
apps/web/src/components/Post/Actions/Menu/Edit.tsx
··· 3 3 import generateUUID from "@hey/helpers/generateUUID"; 4 4 import getPostData from "@hey/helpers/getPostData"; 5 5 import type { PostFragment } from "@hey/indexer"; 6 + import type { NewAttachment } from "@hey/types/misc"; 6 7 7 8 import cn from "@/helpers/cn"; 8 9 import stopEventPropagation from "@/helpers/stopEventPropagation"; ··· 24 25 setPostContent(data?.content || ""); 25 26 setEditingPost(post); 26 27 27 - const attachments = [] as any[]; 28 + const attachments: NewAttachment[] = []; 28 29 if (data?.asset) { 29 30 attachments.push({ 30 31 id: generateUUID(),