diff --git a/webapp/src/plugin_hooks.ts b/webapp/src/plugin_hooks.ts index cdbcea9..89cbc3c 100644 --- a/webapp/src/plugin_hooks.ts +++ b/webapp/src/plugin_hooks.ts @@ -31,7 +31,7 @@ export default class Hooks { } const providerConfiguration = getProviderConfiguration(this.store.getState()); - if (message.startsWith(`/${providerConfiguration.CommandTrigger} ` + createEventCommand)) { + if (providerConfiguration && message.startsWith(`/${providerConfiguration.CommandTrigger} ` + createEventCommand)) { return this.handleCreateEventSlashCommand(message, contextArgs); }