diff --git a/src/runtime/composables/useDrupalCe/index.ts b/src/runtime/composables/useDrupalCe/index.ts index a345d490..c6924ddf 100644 --- a/src/runtime/composables/useDrupalCe/index.ts +++ b/src/runtime/composables/useDrupalCe/index.ts @@ -293,18 +293,7 @@ export const useDrupalCe = () => { // Handle array of custom elements if (Array.isArray(customElements)) { return customElements.map((customElement) => { - if (typeof customElement === 'string') { - return { - template: `
`, - data() { - return { - content: customElement - } - } - } - } - const resolvedElement = resolveCustomElement(customElement.element) - return resolvedElement ? h(resolvedElement, customElement) : null + return renderCustomElements(customElement) }) }