File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/main/src/components/VariantManagement Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,10 @@ export const ManageViewsTableRows = (props: ManageViewsTableRowsProps) => {
94
94
props . manageViewsInputProps ?. onInput ( e ) ;
95
95
}
96
96
const trimmedValue = trimAndRemoveSpaces ( e . target . value ) ;
97
- if ( variantNames . includes ( trimmedValue ) || Array . from ( changedVariantNames . values ( ) ) . includes ( trimmedValue ) ) {
97
+ if (
98
+ children !== trimmedValue &&
99
+ ( variantNames . includes ( trimmedValue ) || Array . from ( changedVariantNames . values ( ) ) . includes ( trimmedValue ) )
100
+ ) {
98
101
setVariantNameInvalid ( errorTextAlreadyExists ) ;
99
102
setInvalidVariants ( ( prev ) => ( { ...prev , [ `${ children } ` ] : inputRef . current } ) ) ;
100
103
handleRowChange ( e , { currentVariant : children , children : trimmedValue } ) ;
You can’t perform that action at this time.
0 commit comments