Skip to content

Commit 6ec47c0

Browse files
Update projects/admin-core/src/lib/catalog/feature-type-attachment-attributes/feature-type-attachment-attributes.component.ts
Co-authored-by: Copilot <[email protected]>
1 parent 2600f2d commit 6ec47c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/admin-core/src/lib/catalog/feature-type-attachment-attributes/feature-type-attachment-attributes.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class FeatureTypeAttachmentAttributesComponent {
133133
return null;
134134
}
135135
const currentValues = formArray.controls.map(c => c.get('attributeName')?.value ?? '');
136-
const currentFieldsWithFieldValue = currentValues.filter(c => c === currentValue);
136+
const currentFieldsWithFieldValue = currentValues.filter(c => c.toLowerCase().trim() === currentValue);
137137
if (currentFieldsWithFieldValue.length > 1) {
138138
return { duplicate: true };
139139
}

0 commit comments

Comments
 (0)