Closed
Description
Which Umbraco version are you using?
15.4.0
Bug summary
The unpublish function in UmbDocumentPublishingWorkspaceContext returns a promise, but the promise resovles almost immediately after being called, due to the last .execute() call not being awaited.
This makes it impossible to await the unpublish action on the context
Specifics
No response
Steps to reproduce
Consume the context UMB_DOCUMENT_PUBLISHING_WORKSPACE_CONTEXT
await context.Unpublish()
log something to console after.
You will see that the log appears before the user has pressed anything on the unpublish modal
Expected result / actual result
No response
This item has been added to our backlog AB#52804