From cbb04c7334b6a8f6fa8614236f892c418b0e0f0c Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 8 May 2021 15:49:40 -0400 Subject: [PATCH] Fix null check in eventData.title matching --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index ef7866f..38bbb10 100644 --- a/src/App.vue +++ b/src/App.vue @@ -88,8 +88,8 @@ export default class App extends Vue { // clear the url to prevent clicking on the event delete eventData.url; - const match = eventData.title.match(/([^\/]*) \| ([^-]*) - (.*)/); - if (match !== null) { + const match = eventData?.title?.match(/([^\/]*) \| ([^-]*) - (.*)/); + if (match) { const [, member, shop, tool] = match; eventData.title = member; if (this.toolFilter === null || tool.includes(this.toolFilter)) {