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

Fix metadata editor dialog display

This commit is contained in:
grafixeyehero 2022-05-20 03:51:36 +03:00 committed by Bill Thornton
parent 47d5b0eb2d
commit 54bafa5dcc

View file

@ -1087,10 +1087,10 @@ import template from './metadataEditor.template.html';
}
export default {
show: function (itemId, serverId) {
return new Promise(function (resolve) {
return show(itemId, serverId, resolve);
});
show: async function (itemId, serverId) {
const apiClient = ServerConnections.getApiClient(serverId);
await apiClient.getItem(apiClient.getCurrentUserId(), itemId);
return new Promise(resolve => show(itemId, serverId, resolve));
},
embed: function (elem, itemId, serverId) {