diff --git a/src/store/command.ts b/src/store/command.ts index 6db4eced35..9d52992955 100644 --- a/src/store/command.ts +++ b/src/store/command.ts @@ -118,6 +118,8 @@ export const commandStore = createPartialStore({ action({ commit, dispatch }, { editor }: { editor: EditorType }) { commit("UNDO", { editor }); if (editor === "song") { + // TODO: 存在しないノートのみ選択解除、あるいはSELECTED_NOTE_IDS getterを作る + commit("DESELECT_ALL_NOTES"); dispatch("RENDER"); } }, @@ -134,6 +136,8 @@ export const commandStore = createPartialStore({ action({ commit, dispatch }, { editor }: { editor: EditorType }) { commit("REDO", { editor }); if (editor === "song") { + // TODO: 存在しないノートのみ選択解除、あるいはSELECTED_NOTE_IDS getterを作る + commit("DESELECT_ALL_NOTES"); dispatch("RENDER"); } },