make snippet id optional

This commit is contained in:
Mads Rasmussen
2024-01-16 15:36:51 +01:00
parent 636553131a
commit d5c009816f

View File

@@ -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(