You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A duplicate Script Executor name shows a validation error that stays visible after changing the name or language. Open Admin > Script Executors, enter an existing name for the same language, and select Save and Build. Then change the name or language.
Solution
Clear the name error when the name or language changes.
Clear the language error when the language changes.
Clear previous errors before each save attempt. Keep server-side uniqueness validation unchanged.
How to Test
Browser smoke passed: duplicate names are rejected, changing the name clears the error, retrying a duplicate shows the error again, and changing the language clears the error.
Component checks passed for create and update retries with simulated API responses. Successful executor builds were not exercised.
Low Risk
Client-side error state only; server-side uniqueness validation is unchanged.
Overview
Fixes stale validation messages on the Admin Script Executor modal when a duplicate name/language save fails.
Watchers on formData.title and formData.language remove the corresponding entries from errors as the user edits (language changes clear both title and language errors, since uniqueness is per language). save() now resets errors before each build/save attempt so prior server errors don’t linger until the next failed response.
Reviewed by Cursor Bugbot for commit d9077d7. Bugbot is set up for automated code reviews on this repo. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue & Reproduction Steps
A duplicate Script Executor name shows a validation error that stays visible after changing the name or language. Open Admin > Script Executors, enter an existing name for the same language, and select Save and Build. Then change the name or language.
Solution
How to Test
Browser smoke passed: duplicate names are rejected, changing the name clears the error, retrying a duplicate shows the error again, and changing the language clears the error.
Component checks passed for create and update retries with simulated API responses. Successful executor builds were not exercised.
Related Tickets & Packages