Skip to content

Commit

Permalink
Merge pull request #956 from griffithlab/tag-input-multi--all-base-fi…
Browse files Browse the repository at this point in the history
…eld--select-msg-state

entity-select's 'none-found' w/ filter param logic handles null results
  • Loading branch information
jmcmichael authored Dec 1, 2023
2 parents fb9b4ca + becddbe commit 29f78f0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ export class CvcVariantQuickAddForm implements OnChanges {
.pipe(untilDestroyed(this))
.subscribe((str: Maybe<string>) => {
this.model.name = str
if (str !== undefined && str.length < this.minNameLength) {
if (
str === undefined ||
(str !== undefined && str.length < this.minNameLength)
) {
this.formMessageDisplay$.next({
message: `New Variant name must be at least ${this.minNameLength} characters.`,
})
Expand Down

0 comments on commit 29f78f0

Please sign in to comment.