From 5a5ad7eec93bbeab925b4ed15eaea9dfaa75d1ab Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 1 Mar 2023 15:48:53 +0100 Subject: [PATCH] workspace actions doesn't have access to a selection --- .../src/stories/extending/workspaces/actions.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/stories/extending/workspaces/actions.mdx b/src/Umbraco.Web.UI.Client/src/stories/extending/workspaces/actions.mdx index 6042d74bab..994c52edd7 100644 --- a/src/Umbraco.Web.UI.Client/src/stories/extending/workspaces/actions.mdx +++ b/src/Umbraco.Web.UI.Client/src/stories/extending/workspaces/actions.mdx @@ -37,7 +37,7 @@ extensionRegistry.register(manifest); ### The Workspace Action Class -As part of the Extension Manifest you can attach a class that will be instanciated as part of the action. It will have access to the host element, the Workspace Context, and an array of uniques (key etc). When the action is clicked the `execute` method on the api class will be run. When the action is completed, an event on the host element will be dispatched to notify any surrounding elements. +As part of the Extension Manifest you can attach a class that will be instanciated as part of the action. It will have access to the host element and the Workspace Context. When the action is clicked the `execute` method on the api class will be run. When the action is completed, an event on the host element will be dispatched to notify any surrounding elements. ```ts import { UmbEntityBulkActionBase } from '@umbraco-cms/entity-action'; @@ -45,8 +45,8 @@ import { UmbControllerHostInterface } from '@umbraco-cms/controller'; import { MyRepository } from './my-repository'; export class MyWorkspaceAction extends UmbWorkspaceActionBase { - constructor(host: UmbControllerHostInterface, selection: Array) { - super(host, selection); + constructor(host: UmbControllerHostInterface) { + super(host); } async execute() {