Skip to content

Commit 69a6cee

Browse files
RadexitoCopilot
andcommitted
fix: destructure createPlaylist return value correctly in import dialog
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1e29311 commit 69a6cee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

renderer/src/Sidebar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ function Sidebar({
9090
let playlistId = null;
9191

9292
if (choice.type === 'create') {
93-
const id = await window.api.createPlaylist(choice.name);
94-
playlistId = id;
93+
const result = await window.api.createPlaylist(choice.name);
94+
playlistId = result?.id ?? null;
9595
} else if (choice.type === 'existing') {
9696
playlistId = choice.id;
9797
}

0 commit comments

Comments
 (0)