Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: デフォルトプリセットが正常に生成されない問題を修正 #1305

Merged
merged 1 commit into from
May 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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