From 837026d30cc7bc4710e185a2ce875bf713340a99 Mon Sep 17 00:00:00 2001 From: Sig <62321214+sigprogramming@users.noreply.github.com> Date: Sun, 25 Aug 2024 17:56:38 +0900 Subject: [PATCH] =?UTF-8?q?clone=E3=82=92=E3=81=97=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/singing.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/store/singing.ts b/src/store/singing.ts index dd247fdc5b..a9027b401a 100644 --- a/src/store/singing.ts +++ b/src/store/singing.ts @@ -1658,7 +1658,10 @@ export const singingStore = createPartialStore({ for (const [phraseKey, foundPhrase] of foundPhrases) { // 新しいフレーズまたは既存のフレーズの場合 const existingPhrase = state.phrases.get(phraseKey); - const phrase = existingPhrase ?? foundPhrase; + const phrase = + existingPhrase == undefined + ? foundPhrase + : cloneWithUnwrapProxy(existingPhrase); const track = getOrThrow(snapshot.tracks, phrase.trackId); if (track.singer == undefined) { phrase.state = "SINGER_IS_NOT_SET";