1
0
Fork 0
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:
Cameron 2020-08-25 15:44:01 +01:00
parent 768fef0f1f
commit b8cf026bad

View file

@ -29,8 +29,6 @@ import 'emby-ratingbutton';
import 'emby-scroller'; import 'emby-scroller';
import 'emby-select'; import 'emby-select';
/* eslint-disable indent */
function getPromise(apiClient, params) { function getPromise(apiClient, params) {
const id = params.id; const id = params.id;
@ -1940,9 +1938,10 @@ import 'emby-select';
} }
function onMoreCommandsClick() { function onMoreCommandsClick() {
var button = this; const button = this;
var selectedItem = currentItem; let selectedItem = view.querySelector('.selectSource').value || currentItem.Id;
apiClient.getItem(apiClient.getCurrentUserId(), view.querySelector('.selectSource').value).then(function (item) {
apiClient.getItem(apiClient.getCurrentUserId(), selectedItem).then(function (item) {
selectedItem = item; selectedItem = item;
apiClient.getCurrentUser().then(function (user) { apiClient.getCurrentUser().then(function (user) {
@ -2030,5 +2029,3 @@ import 'emby-select';
self.currentRecordingFields = null; self.currentRecordingFields = null;
}); });
} }
/* eslint-enable indent */