mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 21:33:58 +00:00
fix
This commit is contained in:
@@ -169,7 +169,7 @@ function DataGridRow({
|
|||||||
// });
|
// });
|
||||||
|
|
||||||
// console.log('RENDER ROW', rowIndex);
|
// console.log('RENDER ROW', rowIndex);
|
||||||
|
|
||||||
const rowDefinition = display.getChangeSetRow(row, insertedRowIndex);
|
const rowDefinition = display.getChangeSetRow(row, insertedRowIndex);
|
||||||
const [matchedField, matchedChangeSetItem] = findExistingChangeSetItem(changeSet, rowDefinition);
|
const [matchedField, matchedChangeSetItem] = findExistingChangeSetItem(changeSet, rowDefinition);
|
||||||
const rowUpdated = matchedChangeSetItem ? { ...row, ...matchedChangeSetItem.fields } : row;
|
const rowUpdated = matchedChangeSetItem ? { ...row, ...matchedChangeSetItem.fields } : row;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import _ from 'lodash';
|
||||||
import { SeriesSizes } from './SeriesSizes';
|
import { SeriesSizes } from './SeriesSizes';
|
||||||
import { CellAddress } from './selection';
|
import { CellAddress } from './selection';
|
||||||
|
|
||||||
@@ -108,10 +109,10 @@ export function countVisibleRealColumns(columnSizes, firstVisibleColumnScrollInd
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function filterCellForRow(cell, row: number): CellAddress | null {
|
export function filterCellForRow(cell, row: number): CellAddress | null {
|
||||||
return cell && cell[0] == row ? cell : null;
|
return cell && cell[0] == row && _.isString(cell[0]) ? cell : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function filterCellsForRow(cells, row: number): CellAddress[] | null {
|
export function filterCellsForRow(cells, row: number): CellAddress[] | null {
|
||||||
const res = (cells || []).filter(x => x[0] == row);
|
const res = (cells || []).filter(x => x[0] == row || _.isString(x[0]));
|
||||||
return res.length > 0 ? res : null;
|
return res.length > 0 ? res : null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user