mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the wrong SQL is generated when deleting and renaming table columns together. Fixes #6935
This commit is contained in:
committed by
Akshay Joshi
parent
ea0d3eb812
commit
a2f5e6ad8f
@@ -176,7 +176,7 @@ function getChangedData(topSchema, viewHelperProps, sessData, stringify=false, i
|
||||
|
||||
/* If the id attr value is present, then only changed keys can be passed.
|
||||
Otherwise, passing all the keys is useful */
|
||||
let idAttrValue = _.get(origVal, [field.id, rowIndx, field.schema.idAttribute]);
|
||||
let idAttrValue = _.get(sessVal, [field.id, rowIndx, field.schema.idAttribute]);
|
||||
if(_.isUndefined(idAttrValue)) {
|
||||
change['changed'].push({
|
||||
...changedRow,
|
||||
|
||||
Reference in New Issue
Block a user