mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
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>
This commit is contained in:
parent
50f20d60af
commit
591ea80abb
@ -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 }),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user