Skip to content

Commit 1797c68

Browse files
committed
refactor: address pr comment
1 parent 9278d25 commit 1797c68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

projects/wc/src/app/components/generic-ui/list-view/create-resource-modal/create-resource-modal.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ export class CreateResourceModalComponent implements OnInit {
161161
validators.push(Validators.required);
162162
}
163163

164-
if (fieldDefinition.property === 'metadata.name') {
164+
if (
165+
fieldDefinition.property === CreateOnlyResourceFieldNames.MetadataName
166+
) {
165167
validators.push(k8sNameValidator);
166168
}
167169

0 commit comments

Comments
 (0)