Skip to content

Commit

Permalink
Fix incorrect collection of promises when deleting a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
BluSunrize committed Mar 26, 2024
1 parent f9382fc commit 6fd9b28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ export class ClocksSidebarTab extends SidebarTab {
Dialog.confirm({
title: `${game.i18n.localize('FOLDER.Delete')} ${folder.name}`,
content: `<h4>${game.i18n.localize('AreYouSure')}</h4><p>${game.i18n.localize('FOLDER.DeleteWarning')}</p>`,
yes: () => Promise.all(
yes: () => Promise.all([
...subtreeIDs.map(folderId => deleteFolder(folderId)),
...clockIDs.map(clockId => deleteClock(clockId))
),
]),
no: () => { },
defaultYes: false
})
Expand Down

0 comments on commit 6fd9b28

Please sign in to comment.