app/assets/javascripts/erd/erd.js.js in erd-0.6.0 vs app/assets/javascripts/erd/erd.js.js in erd-0.6.1
- old
+ new
@@ -31,10 +31,10 @@
}
this.connect_arrows(this.edges);
}
upsert_change(action, model, column, from, to) {
- const rows = ($('#changes > tbody > tr').map((tr) => $(tr).find('td')));
+ const rows = $('#changes > tbody > tr').toArray().map((tr) => $(tr).find('td'));
let existing = null;
$(rows).each(function(i, row) {
if ((action === $(row[0]).html()) && (model === $(row[1]).html()) && (column === $(row[2]).html())) { return existing = row; }
});
if (existing === null) {