mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixed the suggested changes
This commit is contained in:
parent
ee2f86124b
commit
83f1c7498d
3 changed files with 68 additions and 67 deletions
|
@ -15,10 +15,10 @@ function alertText(options) {
|
|||
|
||||
export function deleteItem(options) {
|
||||
|
||||
var item = options.item;
|
||||
var parentId = item.SeasonId || item.SeriesId || item.ParentId;
|
||||
const item = options.item;
|
||||
const parentId = item.SeasonId || item.SeriesId || item.ParentId;
|
||||
|
||||
var apiClient = connectionManager.getApiClient(item.ServerId);
|
||||
let apiClient = connectionManager.getApiClient(item.ServerId);
|
||||
|
||||
return confirm({
|
||||
|
||||
|
@ -40,7 +40,7 @@ export function deleteItem(options) {
|
|||
}
|
||||
}, function (err) {
|
||||
|
||||
var result = function () {
|
||||
let result = function () {
|
||||
return Promise.reject(err);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue