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:
parent
29fb5d3379
commit
3aa0607d87
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue