Skip to content

Commit

Permalink
[release-0.22] fix: インポート時のトラック順を修正 (#2415)
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroshiba <[email protected]>
  • Loading branch information
sevenc-nanashi and Hiroshiba authored Dec 15, 2024
1 parent cb29a99 commit 84bd237
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const tsEslintRules = {
// TODO: いずれは有効化する
"@typescript-eslint/require-await": "off",

// 比較関数無しでのsortは文字列での比較になり、ミスが起こりやすいため有効化
"@typescript-eslint/require-array-sort-compare": "error",

"@typescript-eslint/no-misused-promises": [
"error",
{
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialog/ImportSongProjectDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ const handleImportTrack = () => {
throw new Error("project or selected track is not set");
}
// トラックをインポート
const trackIndexes = selectedTrackIndexes.value.toSorted();
const trackIndexes = selectedTrackIndexes.value.toSorted((a, b) => a - b);
if (project.value.type === "vvproj") {
void store.actions.COMMAND_IMPORT_VOICEVOX_PROJECT({
project: project.value.project,
Expand Down

0 comments on commit 84bd237

Please sign in to comment.