diff --git a/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/views/details/data-type-details-workspace-view.element.ts b/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/views/details/data-type-details-workspace-view.element.ts index b00b10ea19..ba58c5bdb8 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/views/details/data-type-details-workspace-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/views/details/data-type-details-workspace-view.element.ts @@ -63,7 +63,9 @@ export class UmbDataTypeDetailsWorkspaceViewEditElement extends UmbLitElement im .onSubmit() .catch(() => undefined); - this._workspaceContext?.setPropertyEditorUiAlias(value?.selection[0]); + if (value) { + this._workspaceContext?.setPropertyEditorUiAlias(value.selection[0]); + } } render() {