From 591ea80abb66ed3f688314d50bf650e2d84fa529 Mon Sep 17 00:00:00 2001 From: Ayman Makroo <115135407+aym-n@users.noreply.github.com> Date: Sat, 18 Jul 2026 14:11:11 +0530 Subject: [PATCH] Update ui/src/subsonic/index.js replace .at(-1) due to compatibility issues with older browsers Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- ui/src/subsonic/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 }),