From b598db1e70b17e018f9e9343e69534c2fab85e86 Mon Sep 17 00:00:00 2001 From: jableader Date: Sat, 25 May 2024 12:08:06 +1000 Subject: [PATCH] Person id check --- src/components/meals/PersonList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/meals/PersonList.vue b/src/components/meals/PersonList.vue index 793f6ec..87fbbba 100644 --- a/src/components/meals/PersonList.vue +++ b/src/components/meals/PersonList.vue @@ -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]; }