diff --git a/ui/src/subsonic/index.js b/ui/src/subsonic/index.js index a436e3f7d..b4ea33afe 100644 --- a/ui/src/subsonic/index.js +++ b/ui/src/subsonic/index.js @@ -81,10 +81,8 @@ const getAvatarUrl = (username, size) => ) const getCoverArtUrl = (record, size, square) => { - const bust = [record?.updatedAt, record?.importedAt] - .filter(Boolean) - .sort() - .at(-1) + const dates = [record?.updatedAt, record?.importedAt].filter(Boolean).sort() + const bust = dates[dates.length - 1] const options = { ...(bust && { _: bust }), ...(size && { size }),