mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix deletion of rows where the primary key isn't at ordinal zero. Fixes #2274
This commit is contained in:
parent
ee73b5ba26
commit
5f2a15dd6d
@ -496,7 +496,7 @@ class TableCommand(GridCommand):
|
||||
for k, v in row.items():
|
||||
# Set primary key with label & delete index based mapped key
|
||||
try:
|
||||
row[keys[int(k)]] = v
|
||||
row[changed_data['columns'][int(k)]['name']] = v
|
||||
except ValueError:
|
||||
continue
|
||||
del row[k]
|
||||
|
Loading…
Reference in New Issue
Block a user