mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Refactor discussion component
This commit is contained in:
@@ -26,9 +26,9 @@
|
||||
embeds: Embed[],
|
||||
) => Promise<void>;
|
||||
createReply?: (
|
||||
commentId: string,
|
||||
comment: string,
|
||||
embeds: Embed[],
|
||||
commentId: string,
|
||||
) => Promise<void>;
|
||||
reactOnComment?: (
|
||||
commentId: string,
|
||||
@@ -154,9 +154,9 @@
|
||||
try {
|
||||
submitInProgress = true;
|
||||
await createReply(
|
||||
root.id,
|
||||
comment,
|
||||
Array.from(embeds.values()),
|
||||
root.id,
|
||||
);
|
||||
} finally {
|
||||
showReplyForm = false;
|
||||
|
||||
Reference in New Issue
Block a user