Person id check

This commit is contained in:
jableader 2024-05-25 12:08:06 +10:00
parent f0d7701151
commit b598db1e70

View file

@ -148,7 +148,7 @@ export default {
this.searchResults = results.filter(p => !idSet.has(p.id)); this.searchResults = results.filter(p => !idSet.has(p.id));
}, },
addPerson(person) { addPerson(person) {
if (!person?.id >= 0 && this.searchResults.length > 0) if (!person && this.searchResults.length > 0)
{ {
person = this.searchResults[0]; person = this.searchResults[0];
} }