Skip to content

Commit

Permalink
Fix the parameter name field to avoid changing the name when no chang…
Browse files Browse the repository at this point in the history
…e was done (#7178)
  • Loading branch information
D8H authored Nov 20, 2024
1 parent ac6b64b commit e6343df
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,9 @@ export const EventsFunctionParametersEditor = ({
translatableHintText={t`Enter the parameter name (mandatory)`}
value={parameter.getName()}
onChange={newName => {
if (newName === parameter.getName()) {
return;
}
const projectScopedContainers = projectScopedContainersAccessor.get();
const validatedNewName = getValidatedParameterName(
parameters,
Expand Down

0 comments on commit e6343df

Please sign in to comment.