diff --git a/modules/rpubs/components/folk-pubs-editor.ts b/modules/rpubs/components/folk-pubs-editor.ts index 9199382..5bd6c25 100644 --- a/modules/rpubs/components/folk-pubs-editor.ts +++ b/modules/rpubs/components/folk-pubs-editor.ts @@ -411,9 +411,6 @@ export class FolkPubsEditor extends HTMLElement { private render() { if (!this.shadowRoot) return; - const currentFormat = this._formats.find(f => f.id === this._selectedFormat); - const formatLabel = currentFormat ? currentFormat.name : this._selectedFormat; - this.shadowRoot.innerHTML = ` ${this.getStyles()}
@@ -424,22 +421,6 @@ export class FolkPubsEditor extends HTMLElement {
- -
- - -
- ${this._runtime ? `
@@ -518,7 +499,20 @@ export class FolkPubsEditor extends HTMLElement {
- ${this.escapeHtml(this._formats.find(f => f.id === this._selectedFormat)?.name || this._selectedFormat)} +
+ + +
${this._error ? `
${this.escapeHtml(this._error)}
` : ''}