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

Merge pull request #3781 from yahuli/fix-type-error

This commit is contained in:
Bill Thornton 2022-07-29 18:32:10 -04:00 committed by GitHub
commit b167bf2d37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,7 @@ export function canEdit(user, item) {
} }
export function isLocalItem(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; return true;
} }