diff --git a/src/components/Editor/Modals/CreateGroup.vue b/src/components/Editor/Modals/CreateGroup.vue index 2d37021e..2ef9a200 100644 --- a/src/components/Editor/Modals/CreateGroup.vue +++ b/src/components/Editor/Modals/CreateGroup.vue @@ -66,7 +66,7 @@ export default { }, methods: { updateGroupName(event) { - this.group.name = event.target.value.toLowerCase().replace(' ', '-'); + this.group.name = event.target.value.toLowerCase().replace(/ /g, '-'); }, addGroup() { diff --git a/src/components/Editor/Modals/CreateTrack.vue b/src/components/Editor/Modals/CreateTrack.vue index b25ba8dc..acb5f674 100644 --- a/src/components/Editor/Modals/CreateTrack.vue +++ b/src/components/Editor/Modals/CreateTrack.vue @@ -109,7 +109,7 @@ export default { methods: { updateTrackName(event) { - this.track.id = event.target.value.toLowerCase().replace(' ', '-'); + this.track.id = event.target.value.toLowerCase().replace(/ /g, '-'); }, addTrack() {