Skip to content

Commit

Permalink
fix: トラック名が保存されないバグの修正 (#2200)
Browse files Browse the repository at this point in the history
* fix: トラック名が保存されないバグの修正

* コメントに変更
  • Loading branch information
Hiroshiba authored Aug 4, 2024
1 parent 5e6693a commit e9bc345
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Sing/SideBar/TrackItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,16 @@ watchEffect(() => {
const updateTrackName = () => {
if (temporaryTrackName.value === track.value.name) return;
// 空のトラック名だと空欄のようになってしまうので許容しない
if (temporaryTrackName.value === "") {
temporaryTrackName.value = track.value.name;
return;
}
store.dispatch("COMMAND_SET_TRACK_NAME", {
trackId: props.trackId,
name: track.value.name,
name: temporaryTrackName.value,
});
};
Expand Down

0 comments on commit e9bc345

Please sign in to comment.