Validation fix: Corrected fields should revert back from error-state (#19376)
Fixes PROD-278
This commit is contained in:
parent
a33ce7c20c
commit
3fef668394
@ -492,12 +492,14 @@ const AddOfferModal = () => {
|
||||
let newOverrides = {...prevOverrides};
|
||||
newOverrides.name = newValue;
|
||||
if (!prevOverrides.code.isDirty) {
|
||||
clearError('code');
|
||||
newOverrides.code = {
|
||||
...prevOverrides.code,
|
||||
value: slugify(newValue)
|
||||
};
|
||||
}
|
||||
if (!prevOverrides.displayTitle.isDirty) {
|
||||
clearError('displayTitle');
|
||||
newOverrides.displayTitle = {
|
||||
...prevOverrides.displayTitle,
|
||||
value: newValue
|
||||
|
Loading…
Reference in New Issue
Block a user