mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 08:54:13 +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];
|
const sound = sounds[id];
|
||||||
|
|
||||||
set({
|
set({
|
||||||
|
history: null,
|
||||||
sounds: {
|
sounds: {
|
||||||
...sounds,
|
...sounds,
|
||||||
[id]: { ...sound, isFavorite: !sound.isFavorite },
|
[id]: { ...sound, isFavorite: !sound.isFavorite },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue