Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit b07adb9

Browse files
authored
Merge pull request #465 from Sage-Bionetworks/develop-fix-broken-tool-config
Corrected broken validation path for tool name
2 parents 7efb63d + 1ad8fd6 commit b07adb9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client/app/tool/tool-edit/tool-edit.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export class ToolEditComponent implements OnInit, OnDestroy {
3434
this.editForm = this.formBuilder.group({
3535
title: ['', [
3636
Validators.required,
37-
Validators.minLength(config.models.tool.title.minlength),
38-
Validators.maxLength(config.models.tool.title.maxlength)
37+
Validators.minLength(config.models.tool.name.minlength),
38+
Validators.maxLength(config.models.tool.name.maxlength)
3939
]],
4040
description: ['', [
4141
Validators.required,

client/app/tool/tool-new/tool-new.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ export class ToolNewComponent implements OnInit, OnDestroy {
3535
this.newForm = this.formBuilder.group({
3636
title: ['', [
3737
Validators.required,
38-
Validators.minLength(config.models.tool.title.minlength),
39-
Validators.maxLength(config.models.tool.title.maxlength)
38+
Validators.minLength(config.models.tool.name.minlength),
39+
Validators.maxLength(config.models.tool.name.maxlength)
4040
]],
4141
description: ['', [
4242
Validators.required,

0 commit comments

Comments
 (0)