From 36cdbbd706c41b10b6fd19d84756b35f8c0a3f8b Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Sun, 1 Dec 2024 22:00:47 +0800 Subject: [PATCH] fix: selected id state Issues brought in https://github.com/RSSNext/Follow/commit/ad3a4cb556908d4cdff3a1e46150c5d73849fef3 --- apps/renderer/src/modules/feed-column/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/renderer/src/modules/feed-column/index.tsx b/apps/renderer/src/modules/feed-column/index.tsx index 23fb202a11..d1e8eb75bb 100644 --- a/apps/renderer/src/modules/feed-column/index.tsx +++ b/apps/renderer/src/modules/feed-column/index.tsx @@ -169,7 +169,7 @@ export function FeedColumn({ children, className }: PropsWithChildren<{ classNam onPointerDown={useTypeScriptHappyCallback((e) => { if (!(e.target instanceof HTMLElement) || !e.target.closest("[data-feed-id]")) { const nextSelectedFeedIds = getSelectedFeedIds() - if (nextSelectedFeedIds.length > 0) { + if (nextSelectedFeedIds.length === 0) { setSelectedFeedIds(nextSelectedFeedIds) } else { resetSelectedFeedIds()