mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 00:44:14 +00:00
fix: remove history on favorite toggle
This commit is contained in:
parent
f390f38016
commit
190f06aa78
1 changed files with 1 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ export const createActions: StateCreator<
|
|||
const sound = sounds[id];
|
||||
|
||||
set({
|
||||
history: null,
|
||||
sounds: {
|
||||
...sounds,
|
||||
[id]: { ...sound, isFavorite: !sound.isFavorite },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue