query designer - undo

This commit is contained in:
Jan Prochazka
2020-12-30 18:33:17 +01:00
parent d71f27f8b3
commit 7a5187e283
6 changed files with 85 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ import InlineButton from '../widgets/InlineButton';
import { findDesignerFilterType } from './designerTools';
function getTableDisplayName(column, tables) {
const table = tables.find((x) => x.designerId == column.designerId);
const table = (tables || []).find((x) => x.designerId == column.designerId);
if (table) return table.alias || table.pureName;
return '';
}