mirror of https://github.com/usememos/memos.git
fix: user stats changes based on selected tab (#4504)
- set partial only the relevant user stats instead of only adding up stats
This commit is contained in:
parent
e75ef0964d
commit
32c69bbb52
|
|
@ -179,7 +179,6 @@ const userStore = (() => {
|
|||
}
|
||||
state.setPartial({
|
||||
userStatsByName: {
|
||||
...state.userStatsByName,
|
||||
...userStatsByName,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue