Skip to content

Commit

Permalink
cloneをしていなかったので修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming committed Aug 25, 2024
1 parent 1c74f03 commit 837026d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/store/singing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,10 @@ export const singingStore = createPartialStore<SingingStoreTypes>({
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";
Expand Down

0 comments on commit 837026d

Please sign in to comment.