Skip to content

Commit

Permalink
[refactor] SET_SINGER内のawait SETUP_SINGERを待機しないようにする (#1891)
Browse files Browse the repository at this point in the history
* SET_SINGER内でSETUP_SINGERしてるのを解体する

* SETするたびにSETUP_SINGERするように

* いらない

* GET_DEFAULT_SINGERいらない気がしたので

* void

* voidもいらないかも
  • Loading branch information
Hiroshiba authored Mar 6, 2024
1 parent b86cad8 commit 36fb7f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/singing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const singingStore = createPartialStore<SingingStoreTypes>({

const styleId = singer?.styleId ?? defaultStyleId;

await dispatch("SETUP_SINGER", { singer: { engineId, styleId } });
dispatch("SETUP_SINGER", { singer: { engineId, styleId } });
commit("SET_SINGER", { singer: { engineId, styleId } });

dispatch("RENDER");
Expand Down Expand Up @@ -1967,7 +1967,7 @@ export const singingCommandStore = transformCommandStore(
singingStore.mutations.SET_SINGER(draft, { singer });
},
async action({ dispatch, commit }, { singer }) {
await dispatch("SETUP_SINGER", { singer });
dispatch("SETUP_SINGER", { singer });
commit("COMMAND_SET_SINGER", { singer });

dispatch("RENDER");
Expand Down

0 comments on commit 36fb7f2

Please sign in to comment.