diff --git a/src/Umbraco.Web.UI.Client/src/packages/block/block-list/components/block-list-entry/block-list-entry.element.ts b/src/Umbraco.Web.UI.Client/src/packages/block/block-list/components/block-list-entry/block-list-entry.element.ts
index 48624dad3f..af584330ef 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/block/block-list/components/block-list-entry/block-list-entry.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/block/block-list/components/block-list-entry/block-list-entry.element.ts
@@ -395,7 +395,7 @@ export class UmbBlockListEntryElement extends UmbLitElement implements UmbProper
}
#renderBlock() {
- return this.contentKey
+ return this.contentKey && (this._contentTypeAlias || this._unsupported)
? html`
{
- this._contentElementTypeAlias = alias;
+ this._contentTypeAlias = alias;
},
null,
);
@@ -230,7 +230,7 @@ export class UmbBlockRteEntryElement extends UmbLitElement implements UmbPropert
}
readonly #filterBlockCustomViews = (manifest: ManifestBlockEditorCustomView) => {
- const elementTypeAlias = this._contentElementTypeAlias ?? '';
+ const elementTypeAlias = this._contentTypeAlias ?? '';
const isForBlockEditor =
!manifest.forBlockEditor || stringOrStringArrayContains(manifest.forBlockEditor, UMB_BLOCK_RTE);
const isForContentTypeAlias =
@@ -256,23 +256,25 @@ export class UmbBlockRteEntryElement extends UmbLitElement implements UmbPropert
};
#renderBlock() {
- return html`
-
-
- ${this.#renderRefBlock()}
-
- ${this.#renderEditAction()} ${this.#renderEditSettingsAction()}
- ${!this._showContentEdit && this._contentInvalid
- ? html`!`
- : nothing}
-
- `;
+ return this.contentKey && this._contentTypeAlias
+ ? html`
+
+
+ ${this.#renderRefBlock()}
+
+ ${this.#renderEditAction()} ${this.#renderEditSettingsAction()}
+ ${!this._showContentEdit && this._contentInvalid
+ ? html`!`
+ : nothing}
+
+ `
+ : nothing;
}
#renderRefBlock() {