1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Backport pull request #3781 from jellyfin/release-10.8.z

Fix TypeError

Authored-by: dumbfox <benkang666@gmail.com>

Merged-by: Bill Thornton <thornbill@users.noreply.github.com>

Original-merge: b167bf2d37
This commit is contained in:
Joshua Boniface 2022-08-01 14:26:59 -04:00
parent 29fb5d3379
commit 3aa0607d87

View file

@ -123,7 +123,7 @@ export function canEdit(user, item) {
}
export function isLocalItem(item) {
if (item && item.Id && item.Id.indexOf('local') === 0) {
if (item && item.Id && typeof item.Id === 'string' && item.Id.indexOf('local') === 0) {
return true;
}