mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-15 19:22:21 -06:00
Fix JS error when selecting a single grid cell.
This commit is contained in:
parent
4817b37742
commit
1db81da020
@ -865,7 +865,10 @@ define(
|
||||
row_data = grid.getDataItem(args.row),
|
||||
primary_key = row_data && row_data[0];
|
||||
|
||||
if (!_.isUndefined(primary_key)) {
|
||||
// temp_new_rows is available only for view data.
|
||||
if (!_.isUndefined(primary_key) &&
|
||||
self.handler.temp_new_rows
|
||||
) {
|
||||
var index = self.handler.temp_new_rows.indexOf(args.row);
|
||||
if (index > -1) {
|
||||
self.handler.temp_new_rows.splice(index, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user