Revert "fix js issue"

This reverts commit 686f9b6a41.
This commit is contained in:
Niels Lyngsø
2024-01-26 12:39:17 +01:00
parent cd9c729f33
commit 5d25632ae6
2 changed files with 2 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ export class UmbPropertyEditorUIBlockGridTypeConfigurationElement
#onCreate(e: CustomEvent, groupKey: string | null) {
const selectedElementType = e.detail.contentElementTypeKey;
if (selectedElementType) {
this.#blockTypeWorkspaceModalRegistration?.open({}, 'create/' + groupKey + '/' + selectedElementType);
this.#blockTypeWorkspaceModalRegistration?.open({}, 'create/' + selectedElementType + '/' + groupKey);
}
}

View File

@@ -48,8 +48,7 @@ export class UmbPropertyEditorUIBlockListBlockConfigurationElement
#onCreate(e: CustomEvent) {
const selectedElementType = e.detail.contentElementTypeKey;
if (selectedElementType) {
// We do not have any groups here, which is why we pass null as the groupKey.
this.#blockTypeWorkspaceModalRegistration?.open({}, 'create/null/' + selectedElementType);
this.#blockTypeWorkspaceModalRegistration?.open({}, 'create/' + selectedElementType + '/null');
}
}