From 8102400404d200e3e9d5c9db9a17de7ceb211894 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 23 Jun 2025 19:15:37 +0800 Subject: [PATCH] feat(desktop): add debug logging in EntryItemWrapper for click handling - Introduced console logging in the handleClick function to track navigation decisions and entry details. - This addition aids in debugging navigation logic by providing insights into the entryId and feedId during click events. Signed-off-by: Innei --- .../src/modules/entry-column/layouts/EntryItemWrapper.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx index 21208e608..cfdb079a7 100644 --- a/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx +++ b/apps/desktop/layer/renderer/src/modules/entry-column/layouts/EntryItemWrapper.tsx @@ -88,6 +88,14 @@ export const EntryItemWrapper: FC< e.stopPropagation() const shouldNavigate = getRouteParams().entryId !== entry?.id + console.info( + "handleClick", + e, + getRouteParams().entryId, + entry?.id, + shouldNavigate, + entry?.feedId, + ) if (!shouldNavigate) return if (!entry?.feedId) return if (!asRead) {