Skip to content

Commit

Permalink
FIX: デフォルトプリセットが正常に生成されない問題を修正 (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabonerune committed May 4, 2023
1 parent a9d75db commit b49c3b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/store/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ export const presetStore = createPartialStore<PresetStoreTypes>({
async action({ state, dispatch, getters }) {
const voices = getters.GET_ALL_VOICES;

for await (const voice of voices) {
for (const voice of voices) {
const voiceId = VoiceId(voice);
const defaultPresetKey = state.defaultPresetKeys[voiceId];

if (state.presetKeys.includes(defaultPresetKey)) {
return defaultPresetKey;
continue;
}

const characterName = getters.VOICE_NAME(voice);
Expand All @@ -229,8 +229,6 @@ export const presetStore = createPartialStore<PresetStoreTypes>({
[voiceId]: newPresetKey,
},
});

return newPresetKey;
}
},
},
Expand Down

0 comments on commit b49c3b5

Please sign in to comment.