diff --git a/src/components/PlaylistForm.vue b/src/components/PlaylistForm.vue index 3552aa80..8a2ec06d 100644 --- a/src/components/PlaylistForm.vue +++ b/src/components/PlaylistForm.vue @@ -94,7 +94,7 @@ icon text class="ma-2 red--text" - @click="() => newPlaylist.item_ids.splice(index, 1)" + @click="() => removeItem(index)" > mdi-close @@ -213,6 +213,11 @@ export default { this.newPlaylist.playlist_type = this.playlist.playlist_type; this.newPlaylist.item_ids = [...this.playlist.item_ids]; }, + removeItem(index) { + this.isDirty = true; + this.itemsDirty = true; + this.newPlaylist.item_ids.splice(index, 1); + }, async submit() { let pendingResult = null; if (this.playlist) {