diff --git a/src/components/lyricseditor/lyricseditor.js b/src/components/lyricseditor/lyricseditor.js index 135f87980d..486a426cc5 100644 --- a/src/components/lyricseditor/lyricseditor.js +++ b/src/components/lyricseditor/lyricseditor.js @@ -29,7 +29,8 @@ function downloadRemoteLyrics(context, id) { const api = toApi(ServerConnections.getApiClient(currentItem.ServerId)); const lyricsApi = getLyricsApi(api); lyricsApi.downloadRemoteLyrics({ - itemId: currentItem.Id, lyricId: id + itemId: currentItem.Id, + lyricId: id }).then(function () { hasChanges = true; @@ -289,6 +290,8 @@ function onDeleteLyrics(e) { const context = dom.parentWithClass(e.target, 'formDialogContent'); const apiClient = ServerConnections.getApiClient(currentItem.ServerId); reload(context, apiClient, currentItem.Id); + }).catch(() => { + console.warn('Failed to delete lyrics for', currentItem.Name); }); } diff --git a/src/components/lyricseditor/lyricseditor.template.html b/src/components/lyricseditor/lyricseditor.template.html index 15eae3bf90..84d3a0bec0 100644 --- a/src/components/lyricseditor/lyricseditor.template.html +++ b/src/components/lyricseditor/lyricseditor.template.html @@ -24,4 +24,4 @@ ${NoLyricsSearchResultsFound} - \ No newline at end of file + diff --git a/src/components/lyricseditor/lyricspreview.template.html b/src/components/lyricseditor/lyricspreview.template.html index 93bdd9ce6e..21f706f3fb 100644 --- a/src/components/lyricseditor/lyricspreview.template.html +++ b/src/components/lyricseditor/lyricspreview.template.html @@ -7,4 +7,4 @@