mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🐛 Fix for same name rename (#1317)
If you rename to the same name, it just gets removed. This should not be the case.
This commit is contained in:
@@ -96,8 +96,8 @@ export class RenameKeys implements INodeType {
|
||||
}
|
||||
|
||||
renameKeys.forEach((renameKey) => {
|
||||
if (renameKey.currentKey === '' || renameKey.newKey === '') {
|
||||
// Ignore all which do not have all the values set
|
||||
if (renameKey.currentKey === '' || renameKey.newKey === '' || renameKey.currentKey === renameKey.newKey) {
|
||||
// Ignore all which do not have all the values set or if the new key is equal to the current key
|
||||
return;
|
||||
}
|
||||
value = get(item.json, renameKey.currentKey as string);
|
||||
|
||||
Reference in New Issue
Block a user