mirror of
https://github.com/remvze/moodist.git
synced 2025-09-29 15:30:49 -04:00
fix: remove history on favorite toggle
This commit is contained in:
parent
f390f38016
commit
190f06aa78
@ -83,6 +83,7 @@ export const createActions: StateCreator<
|
||||
const sound = sounds[id];
|
||||
|
||||
set({
|
||||
history: null,
|
||||
sounds: {
|
||||
...sounds,
|
||||
[id]: { ...sound, isFavorite: !sound.isFavorite },
|
||||
|
Loading…
x
Reference in New Issue
Block a user