Remove url propery on events to prevent clicking leaving the page

This commit is contained in:
Adam Goldsmith 2021-04-01 14:01:34 -04:00
parent 71159a9a47
commit c1ebedafc1

View File

@ -85,6 +85,9 @@ export default class App extends Vue {
}
eventDataTransform(eventData: EventInput): EventInput | false {
// clear the url to prevent clicking on the event
delete eventData.url;
const match = eventData.title.match(/([^\/]*) \| ([^-]*) - (.*)/);
if (match !== null) {
const [, member, shop, tool] = match;