mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix return statements
This commit is contained in:
parent
161f531523
commit
27cd24f5fc
9 changed files with 53 additions and 28 deletions
|
@ -23,7 +23,8 @@ import ServerConnections from './ServerConnections';
|
|||
if (!actionableParent || actionableParent.classList.contains('cardContent')) {
|
||||
apiClient.getJSON(apiClient.getUrl('Users/' + userId + '/Items/Latest', options)).then(function (items) {
|
||||
if (items.length === 1) {
|
||||
return appRouter.showItem(items[0]);
|
||||
appRouter.showItem(items[0]);
|
||||
return;
|
||||
}
|
||||
|
||||
const url = 'details?id=' + itemId + '&serverId=' + serverId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue