Skip to content

Commit

Permalink
#1302: add missing reset
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed May 6, 2024
1 parent 84dabf9 commit 1223306
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/metadataTypes/MetadataType.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,9 @@ class MetadataType {
` - --changeKeyField is set to the same value as the keyField for ${this.definition.type}. Skipping change.`
);
} else if (metadataMap[metadataKey][Util.OPTIONS.changeKeyField]) {
// NOTE: trim twice while getting the newKey value to remove leading spaces before limiting the length
Util.OPTIONS.keySuffix = Util.OPTIONS.keySuffix
? Util.OPTIONS.keySuffix.trim()
: '';
const newKey = this.getNewKey(metadataMap[metadataKey], maxKeyLength);

if (
Expand Down

0 comments on commit 1223306

Please sign in to comment.