Skip to content

Commit 29f78f0

Browse files
authored
Merge pull request #956 from griffithlab/tag-input-multi--all-base-field--select-msg-state
entity-select's 'none-found' w/ filter param logic handles null results
2 parents fb9b4ca + becddbe commit 29f78f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/src/app/forms/types/variant-select/variant-quick-add/variant-quick-add.form.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ export class CvcVariantQuickAddForm implements OnChanges {
153153
.pipe(untilDestroyed(this))
154154
.subscribe((str: Maybe<string>) => {
155155
this.model.name = str
156-
if (str !== undefined && str.length < this.minNameLength) {
156+
if (
157+
str === undefined ||
158+
(str !== undefined && str.length < this.minNameLength)
159+
) {
157160
this.formMessageDisplay$.next({
158161
message: `New Variant name must be at least ${this.minNameLength} characters.`,
159162
})

0 commit comments

Comments
 (0)