mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix undefined serverId in Person card (#5817)
* Fix undefined serverId in Person card * Use ServerConnections instead of globals * Update src/components/cardbuilder/cardBuilder.js Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com> --------- Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
6a8f21e462
commit
d47023855e
1 changed files with 3 additions and 1 deletions
|
@ -1139,7 +1139,9 @@ function getHoverMenuHtml(item, action) {
|
||||||
let html = '';
|
let html = '';
|
||||||
|
|
||||||
html += '<div class="cardOverlayContainer itemAction" data-action="' + action + '">';
|
html += '<div class="cardOverlayContainer itemAction" data-action="' + action + '">';
|
||||||
const url = appRouter.getRouteUrl(item);
|
const url = appRouter.getRouteUrl(item, {
|
||||||
|
serverId: item.ServerId || ServerConnections.currentApiClient().serverId()
|
||||||
|
});
|
||||||
html += '<a href="' + url + '" class="cardImageContainer"></a>';
|
html += '<a href="' + url + '" class="cardImageContainer"></a>';
|
||||||
|
|
||||||
const btnCssClass = 'cardOverlayButton cardOverlayButton-hover itemAction paper-icon-button-light';
|
const btnCssClass = 'cardOverlayButton cardOverlayButton-hover itemAction paper-icon-button-light';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue