dasdsa
This commit is contained in:
@@ -86,7 +86,7 @@ require dirname(__DIR__) . '/../structure/layout_start.php';
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex gap-2 flex-wrap">
|
<div class="flex gap-2 flex-wrap">
|
||||||
<button type="button" id="btn-open-bridge-setup" class="btn">Bridge-Setup oeffnen</button>
|
<button type="button" id="btn-open-bridge-setup" class="btn">Bridge-Setup oeffnen</button>
|
||||||
<button type="button" id="btn-admin-load-bridge" class="btn">Tabellen vom Bridge-Endpunkt laden</button>
|
<button type="button" id="btn-admin-load-bridge" class="btn">Tabellen neu laden</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -355,7 +355,13 @@ function normalizeTableList(input) {
|
|||||||
const result = [];
|
const result = [];
|
||||||
const seen = new Set();
|
const seen = new Set();
|
||||||
items.forEach(entry => {
|
items.forEach(entry => {
|
||||||
const name = String(entry || '').trim();
|
let name = '';
|
||||||
|
if (typeof entry === 'string') {
|
||||||
|
name = entry;
|
||||||
|
} else if (entry && typeof entry === 'object') {
|
||||||
|
name = entry.name || entry.table || entry.label || '';
|
||||||
|
}
|
||||||
|
name = String(name || '').trim();
|
||||||
if (name && !seen.has(name)) {
|
if (name && !seen.has(name)) {
|
||||||
seen.add(name);
|
seen.add(name);
|
||||||
result.push(name);
|
result.push(name);
|
||||||
|
|||||||
Reference in New Issue
Block a user