mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix broken item details menu on TV Shows
This commit is contained in:
parent
768fef0f1f
commit
b8cf026bad
1 changed files with 1779 additions and 1782 deletions
|
@ -29,8 +29,6 @@ import 'emby-ratingbutton';
|
|||
import 'emby-scroller';
|
||||
import 'emby-select';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
function getPromise(apiClient, params) {
|
||||
const id = params.id;
|
||||
|
||||
|
@ -1940,9 +1938,10 @@ import 'emby-select';
|
|||
}
|
||||
|
||||
function onMoreCommandsClick() {
|
||||
var button = this;
|
||||
var selectedItem = currentItem;
|
||||
apiClient.getItem(apiClient.getCurrentUserId(), view.querySelector('.selectSource').value).then(function (item) {
|
||||
const button = this;
|
||||
let selectedItem = view.querySelector('.selectSource').value || currentItem.Id;
|
||||
|
||||
apiClient.getItem(apiClient.getCurrentUserId(), selectedItem).then(function (item) {
|
||||
selectedItem = item;
|
||||
|
||||
apiClient.getCurrentUser().then(function (user) {
|
||||
|
@ -2030,5 +2029,3 @@ import 'emby-select';
|
|||
self.currentRecordingFields = null;
|
||||
});
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue