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: b167bf2d37023d26aa6a439a95f106eb2c57a06d
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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue