dasdsa
This commit is contained in:
@@ -355,7 +355,13 @@ function normalizeTableList(input) {
|
||||
const result = [];
|
||||
const seen = new Set();
|
||||
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)) {
|
||||
seen.add(name);
|
||||
result.push(name);
|
||||
|
||||
Reference in New Issue
Block a user