Skip to content

V15 - Not possible to await unpublish action on UmbDocumentPublishingWorkspaceContext #19230

Closed
@kraftvaerk-chth

Description

@kraftvaerk-chth

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

new UmbUnpublishDocumentEntityAction(this, { unique, entityType, meta: {} as never }).execute();

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions