mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix id param when creating playlists
This commit is contained in:
parent
f80f198288
commit
32cd1e9307
1 changed files with 6 additions and 4 deletions
|
@ -73,13 +73,15 @@ function createPlaylist(dlg: DialogElement) {
|
|||
const apiClient = ServerConnections.getApiClient(currentServerId);
|
||||
const api = toApi(apiClient);
|
||||
|
||||
const itemIds = dlg.querySelector<HTMLInputElement>('.fldSelectedItemIds')?.value || '';
|
||||
const itemIds = dlg.querySelector<HTMLInputElement>('.fldSelectedItemIds')?.value || undefined;
|
||||
|
||||
return getPlaylistsApi(api)
|
||||
.createPlaylist({
|
||||
name: dlg.querySelector<HTMLInputElement>('#txtNewPlaylistName')?.value,
|
||||
ids: itemIds.split(','),
|
||||
userId: apiClient.getCurrentUserId()
|
||||
createPlaylistDto: {
|
||||
Name: dlg.querySelector<HTMLInputElement>('#txtNewPlaylistName')?.value,
|
||||
Ids: itemIds?.split(','),
|
||||
UserId: apiClient.getCurrentUserId()
|
||||
}
|
||||
})
|
||||
.then(result => {
|
||||
dlg.submitted = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue