From cbf031e7e7903628c26325350150066da08f228e Mon Sep 17 00:00:00 2001 From: the1812 Date: Mon, 13 Jun 2022 23:23:24 +0800 Subject: [PATCH] Fix fold comments only run once --- registry/lib/components/feeds/fold-comments/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/registry/lib/components/feeds/fold-comments/index.ts b/registry/lib/components/feeds/fold-comments/index.ts index 3ec8c64e8..f016ec09f 100644 --- a/registry/lib/components/feeds/fold-comments/index.ts +++ b/registry/lib/components/feeds/fold-comments/index.ts @@ -35,11 +35,10 @@ const entry = async () => { button?.click() } if (!existingComment) { - const [observer] = childListSubtree(card, () => { + childListSubtree(card, () => { const panel = dq(card, commentSelector) if (panel) { injectToComment(card, handler) - observer.disconnect() } }) } else {