don't show error page when not plugin for not-logged-in
This commit is contained in:
parent
68b97919cd
commit
70e97227a4
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,7 @@ import Button from '../widgets/buttons/button'
|
|||
import './errorPage.scss'
|
||||
|
||||
import {errorDefFromId, ErrorId} from '../errors'
|
||||
import {Utils} from '../utils'
|
||||
|
||||
const ErrorPage = () => {
|
||||
const history = useHistory()
|
||||
|
@ -45,6 +46,10 @@ const ErrorPage = () => {
|
|||
)
|
||||
})
|
||||
|
||||
if (!Utils.isFocalboardPlugin() && errid === ErrorId.NotLoggedIn) {
|
||||
handleButtonClick(errorDef.button1Redirect)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='ErrorPage'>
|
||||
<div>
|
||||
|
|
Loading…
Reference in a new issue