diff --git a/mattermost-plugin/webapp/src/index.tsx b/mattermost-plugin/webapp/src/index.tsx index 28735de61..599844fc8 100644 --- a/mattermost-plugin/webapp/src/index.tsx +++ b/mattermost-plugin/webapp/src/index.tsx @@ -148,7 +148,10 @@ export default class Plugin { UserSettings.lastViewId = null window.open(`${windowAny.frontendBaseURL}/workspace/${currentChannel}`, '_blank', 'noopener') } - this.channelHeaderButtonId = registry.registerChannelIntroButtonAction(, goToFocalboardTemplate, 'Boards') + + if (registry.registerChannelIntroButtonAction) { + this.channelHeaderButtonId = registry.registerChannelIntroButtonAction(, goToFocalboardTemplate, 'Boards') + } this.registry.registerProduct('/boards', 'product-boards', 'Boards', '/boards/welcome', MainApp, HeaderComponent) this.registry.registerPostWillRenderEmbedComponent((embed) => embed.type === 'boards', BoardsUnfurl, false)