wrap registration block to catch error (#2299)
* wrap registration block to catch error * check for function existance rather than error Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
parent
46f4185d30
commit
c7492fe0f1
1 changed files with 4 additions and 1 deletions
|
@ -148,7 +148,10 @@ export default class Plugin {
|
|||
UserSettings.lastViewId = null
|
||||
window.open(`${windowAny.frontendBaseURL}/workspace/${currentChannel}`, '_blank', 'noopener')
|
||||
}
|
||||
this.channelHeaderButtonId = registry.registerChannelIntroButtonAction(<FocalboardIcon/>, goToFocalboardTemplate, 'Boards')
|
||||
|
||||
if (registry.registerChannelIntroButtonAction) {
|
||||
this.channelHeaderButtonId = registry.registerChannelIntroButtonAction(<FocalboardIcon/>, goToFocalboardTemplate, 'Boards')
|
||||
}
|
||||
|
||||
this.registry.registerProduct('/boards', 'product-boards', 'Boards', '/boards/welcome', MainApp, HeaderComponent)
|
||||
this.registry.registerPostWillRenderEmbedComponent((embed) => embed.type === 'boards', BoardsUnfurl, false)
|
||||
|
|
Loading…
Reference in a new issue