diff --git a/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.element.ts index 9a18abcd41..be2dc7f67f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/templating/partial-views/workspace/partial-view-workspace.element.ts @@ -43,7 +43,7 @@ export class UmbPartialViewWorkspaceElement extends UmbLitElement { }, ]; - #onCreate = async (parentUnique: string | null, snippetId: string | undefined) => { + #onCreate = async (parentUnique: string | null, snippetId?: string) => { await this.#workspaceContext.create(parentUnique, snippetId); new UmbWorkspaceIsNewRedirectController(