Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srivatsan7 committed May 22, 2024
1 parent ef65572 commit 012563a
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1059,10 +1059,13 @@ export class FieldEditor {
);
if (
((!this.isInternalNameEdited && this.isNewField) || field.isNew) &&
objMaxLimitFieldInternalName &&
strInputValue.length <= objMaxLimitFieldInternalName.count
objMaxLimitFieldInternalName
) {
strInternalName = deriveInternalNameFromLabel(strInputValue);
const derivedInternalName = deriveInternalNameFromLabel(strInputValue);
strInternalName =
strInputValue.length <= objMaxLimitFieldInternalName.count
? derivedInternalName
: derivedInternalName.slice(0, objMaxLimitFieldInternalName.count);
boolInternalNameUpdated = true;
}

Expand Down Expand Up @@ -1106,7 +1109,7 @@ export class FieldEditor {
count: objMaxLimitFieldName.count,
}
);
} else {
} else if (strInternalName.length < objMaxLimitFieldName.count) {
this.internalNameWarningMessage = '';
}

Expand Down

0 comments on commit 012563a

Please sign in to comment.