diff --git a/public/assets/js/bridge/blocks-custom.js b/public/assets/js/bridge/blocks-custom.js
index bf2e0ab..7e18066 100644
--- a/public/assets/js/bridge/blocks-custom.js
+++ b/public/assets/js/bridge/blocks-custom.js
@@ -287,10 +287,15 @@
log('PLACEHOLDER INFO', 'Keine Tabellen – DB Placeholder Block wird nicht angezeigt.', '#888');
return;
}
+ const firstTable = tables[0] || {};
+ const tableName = firstTable.name || 'tabelle';
+ const columns = Array.isArray(firstTable.columns) ? firstTable.columns : [];
+ const firstColumn = columns.length ? columns[0].name : 'feld';
+ const placeholderLabel = `${tableName}.${firstColumn}`.toUpperCase();
addOnce(bm, 'cust-placeholder-db', {
id: 'cust-placeholder-db',
label: '🗄️ Placeholder (DB)',
- content: `{{${(tables[0].name + '.' + (tables[0].columns?.[0]?.name || '')).toUpperCase()}}}`
+ content: `{{${placeholderLabel}}}`
});
})
.catch(() => {