From e9bc345cb29e4754bf34c0e7fbf7781647a28248 Mon Sep 17 00:00:00 2001 From: Hiroshiba Date: Mon, 5 Aug 2024 00:31:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=88=E3=83=A9=E3=83=83=E3=82=AF?= =?UTF-8?q?=E5=90=8D=E3=81=8C=E4=BF=9D=E5=AD=98=E3=81=95=E3=82=8C=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=83=90=E3=82=B0=E3=81=AE=E4=BF=AE=E6=AD=A3=20(#2200?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: トラック名が保存されないバグの修正 * コメントに変更 --- src/components/Sing/SideBar/TrackItem.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Sing/SideBar/TrackItem.vue b/src/components/Sing/SideBar/TrackItem.vue index b5c300aefa..5f58679455 100644 --- a/src/components/Sing/SideBar/TrackItem.vue +++ b/src/components/Sing/SideBar/TrackItem.vue @@ -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, }); };