1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix code smells

This commit is contained in:
Bill Thornton 2020-11-25 10:28:41 -05:00
parent 1a0789f7b9
commit 2d97a56f51
5 changed files with 32 additions and 40 deletions

View file

@ -375,7 +375,7 @@ function onOpenUploadMenu(e) {
});
}
function showEditorInternal(itemId, serverId, template) {
function showEditorInternal(itemId, serverId) {
hasChanges = false;
const apiClient = ServerConnections.getApiClient(serverId);
@ -454,9 +454,7 @@ function showEditorInternal(itemId, serverId, template) {
function showEditor(itemId, serverId) {
loading.show();
return new Promise(function (resolve, reject) {
showEditorInternal(itemId, serverId, template).then(resolve, reject);
});
return showEditorInternal(itemId, serverId);
}
export default {