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:
commit
b167bf2d37
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