From bbfb0a0bf0fdbe78aec8724bf1b13a0fa00ac61e Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Tue, 25 Aug 2020 21:28:21 -0700 Subject: [PATCH] null check --- src/components/LegacyBoard/LegacyAddGameModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LegacyBoard/LegacyAddGameModal.vue b/src/components/LegacyBoard/LegacyAddGameModal.vue index 52771180..2ffa22c0 100644 --- a/src/components/LegacyBoard/LegacyAddGameModal.vue +++ b/src/components/LegacyBoard/LegacyAddGameModal.vue @@ -115,7 +115,7 @@ export default { }, filteredResults() { - return this.results.length + return this.results && this.results.length ? this.results.filter(({ id }) => !this.list[this.listId].games.includes(id)) : []; },