mirror of
https://github.com/usememos/memos.git
synced 2025-01-04 04:26:20 +03:00
fix: heatmap popup showing after logging out (#761)
* fix for heatmap popup showing after logging out * moved node.remove to component unmount * Update web/src/components/UsageHeatMap.tsx Co-authored-by: boojack <stevenlgtm@gmail.com> Co-authored-by: M. Gschwandtner <84477901+OnlyPain-ctrl@users.noreply.github.com> Co-authored-by: boojack <stevenlgtm@gmail.com>
This commit is contained in:
parent
83e5278b51
commit
1eec474007
@ -58,6 +58,10 @@ const UsageHeatMap = () => {
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
return () => {
|
||||
handleUsageStatItemMouseLeave();
|
||||
};
|
||||
}, [memos.length]);
|
||||
|
||||
const handleUsageStatItemMouseEnter = useCallback((event: React.MouseEvent, item: DailyUsageStat) => {
|
||||
|
Loading…
Reference in New Issue
Block a user