The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/PortalWrapper.js

13 lines
303 B

import { PureComponent } from 'react';
class PortalWrapper extends PureComponent {
state = { errored: false }
static getDerivedStateFromError = () => ({ errored: true })
componentDidCatch = () => {}
render = () => (this.state.errored ? null : this.props.portal)
}
export default PortalWrapper;