mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 12:03:58 +00:00
fixed crash after filtering mongo array columns #1049
This commit is contained in:
@@ -369,7 +369,7 @@ export abstract class GridDisplay {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getColumns(columnFilter) {
|
getColumns(columnFilter) {
|
||||||
return this.columns.filter(col => filterName(columnFilter, col.columnName));
|
return this.columns.filter(col => filterName(columnFilter, col.columnName?.toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
getGridColumns() {
|
getGridColumns() {
|
||||||
@@ -716,7 +716,6 @@ export abstract class GridDisplay {
|
|||||||
return sql;
|
return sql;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
getExportQuery(postprocessSelect = null) {
|
getExportQuery(postprocessSelect = null) {
|
||||||
const select = this.createSelect({ isExport: true });
|
const select = this.createSelect({ isExport: true });
|
||||||
if (!select) return null;
|
if (!select) return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user