diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/content-type/workspace/views/design/content-type-design-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/content-type/workspace/views/design/content-type-design-editor.element.ts index 720c6c6b34..2627482872 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/content-type/workspace/views/design/content-type-design-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/content-type/workspace/views/design/content-type-design-editor.element.ts @@ -230,11 +230,13 @@ export class UmbContentTypeDesignEditorElement extends UmbLitElement implements } async #requestDeleteTab(tab: UmbPropertyTypeContainerModel | undefined) { + if (!tab) return; + const tabName = tab.name === '' ? 'Unnamed' : tab.name; // TODO: Localize this: const modalData: UmbConfirmModalData = { headline: 'Delete tab', - content: html` - Are you sure you want to delete the tab ${tab?.name ?? tab?.id} + content: html` + Are you sure you want to delete the tab ${tabName}