mirror of
https://github.com/remvze/moodist.git
synced 2026-02-28 00:53:13 +08:00
fix: remove history on favorite toggle
This commit is contained in:
@@ -83,6 +83,7 @@ export const createActions: StateCreator<
|
||||
const sound = sounds[id];
|
||||
|
||||
set({
|
||||
history: null,
|
||||
sounds: {
|
||||
...sounds,
|
||||
[id]: { ...sound, isFavorite: !sound.isFavorite },
|
||||
|
||||
Reference in New Issue
Block a user