fix: remove history on favorite toggle

This commit is contained in:
MAZE 2023-11-23 17:13:05 +03:30
parent f390f38016
commit 190f06aa78

View File

@ -83,6 +83,7 @@ export const createActions: StateCreator<
const sound = sounds[id];
set({
history: null,
sounds: {
...sounds,
[id]: { ...sound, isFavorite: !sound.isFavorite },