mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 12:16:01 +00:00
fixed delete changeset rows
This commit is contained in:
@@ -391,7 +391,7 @@
|
||||
|
||||
export function deleteSelectedRows() {
|
||||
grider.beginUpdate();
|
||||
for (const index of getSelectedRowIndexes()) {
|
||||
for (const index of _.sortBy(getSelectedRowIndexes(), x => -x)) {
|
||||
if (_.isNumber(index)) grider.deleteRow(index);
|
||||
}
|
||||
grider.endUpdate();
|
||||
@@ -750,7 +750,7 @@
|
||||
|
||||
export function generateSqlFromData() {
|
||||
const columnIndexes = _.uniq(selectedCells.map(x => x[1]));
|
||||
columnIndexes.sort();
|
||||
columnIndexes.sort((a, b) => a - b);
|
||||
|
||||
showModal(GenerateSqlFromDataModal, {
|
||||
rows: getSelectedRowData(),
|
||||
|
||||
@@ -68,7 +68,7 @@ export class SeriesSizes {
|
||||
// _.map(this.intKeys(_.keys(this.sizeOverridesByModelIndex)), (x) => this.modelToReal(x) - this.frozenCount),
|
||||
x => x >= 0
|
||||
);
|
||||
this.scrollIndexes.sort();
|
||||
this.scrollIndexes.sort((a, b) => a - b);
|
||||
let lastScrollIndex: number = -1;
|
||||
let lastEndPosition: number = 0;
|
||||
this.scrollIndexes.forEach(scrollIndex => {
|
||||
|
||||
Reference in New Issue
Block a user