nicolium: fix

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-25 16:44:03 +01:00
parent e3b1019c25
commit bf17486059

View File

@ -293,6 +293,10 @@ const NotificationsColumn: React.FC<INotificationsColumn> = ({ multiColumn }) =>
};
}, []);
useEffect(() => {
setTopNotification(undefined);
}, [activeFilter]);
useEffect(() => {
if (topNotification || displayedNotifications.length === 0) return;
setTopNotification(displayedNotifications[0].most_recent_notification_id);