Fix null check in eventData.title matching
This commit is contained in:
parent
779b9468f4
commit
cbb04c7334
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user