Person id check
This commit is contained in:
parent
f0d7701151
commit
b598db1e70
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ export default {
|
|||
this.searchResults = results.filter(p => !idSet.has(p.id));
|
||||
},
|
||||
addPerson(person) {
|
||||
if (!person?.id >= 0 && this.searchResults.length > 0)
|
||||
if (!person && this.searchResults.length > 0)
|
||||
{
|
||||
person = this.searchResults[0];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue