From a4acd2fb65335f228875ed5b38f03a9c71b76e1b Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 13 Nov 2024 22:50:13 +0800 Subject: [PATCH] fix: mark single feed as all read --- apps/renderer/src/modules/entry-column/hooks/useMarkAll.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/entry-column/hooks/useMarkAll.ts b/apps/renderer/src/modules/entry-column/hooks/useMarkAll.ts index 7a0d5a48b7..ac81c1ffa1 100644 --- a/apps/renderer/src/modules/entry-column/hooks/useMarkAll.ts +++ b/apps/renderer/src/modules/entry-column/hooks/useMarkAll.ts @@ -27,7 +27,7 @@ export const useMarkAllByRoute = (filter?: MarkAllFilter) => { view, filter, }) - } else if (folderIds) { + } else if (folderIds?.length) { subscriptionActions.markReadByFeedIds({ feedIds: folderIds, view,