Skip to content

Commit

Permalink
Allow bondset hook to complete before sheet render
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Sep 11, 2024
1 parent 5b68370 commit 41d37d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/module/applications/createActorDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ export class CreateActorDialog extends FormApplication<CreateActorDialogOptions>
if (sheetClass) {
data.flags = { core: { sheetClass } }
}
await IronswornActor.create(data, { renderSheet: true })
const actor = await IronswornActor.create(data)
await new Promise((resolve) => setTimeout(resolve, 50))
await actor?.sheet?.render(true)
await this.close()
}

Expand Down

0 comments on commit 41d37d8

Please sign in to comment.