Skip to content

Commit

Permalink
fix: selected id state
Browse files Browse the repository at this point in the history
Issues brought in ad3a4cb
  • Loading branch information
hyoban committed Dec 1, 2024
1 parent 7bdf100 commit 36cdbbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/renderer/src/modules/feed-column/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 36cdbbd

Please sign in to comment.