Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix comment likes disappearing during sidebar close animation

Anand Baburajan90f56db286f4
diff --git a/web/packages/gallery/components/viewer/CommentsSidebar.tsx b/web/packages/gallery/components/viewer/CommentsSidebar.tsx
index 6210fedb45..baf36a95f3 100644
--- a/web/packages/gallery/components/viewer/CommentsSidebar.tsx
+++ b/web/packages/gallery/components/viewer/CommentsSidebar.tsx
@@ -933,7 +933,9 @@ export const CommentsSidebar: React.FC<CommentsSidebarProps> = ({
// Build liked comments map from reactions when selected collection changes
useEffect(() => {
- if (!open || !selectedCollectionInfo) {
+ // Don't reset state on close - preserves UI during exit animation
+ if (!open) return;
+ if (!selectedCollectionInfo) {
setLikedComments(new Map());
return;
}