Chat-ops fix (#1472)
# What this PR does Fix for the crash of Chat-ops page ## Which issue(s) this PR fixes https://github.com/grafana/oncall/issues/1467
This commit is contained in:
parent
f5fb5d34dc
commit
d6dbfad999
1 changed files with 5 additions and 1 deletions
|
|
@ -33,7 +33,11 @@ class ChatOpsPage extends React.Component<AppRootProps, ChatOpsState> {
|
|||
componentDidMount() {
|
||||
const { query } = this.props;
|
||||
|
||||
this.handleChatopsTabChange(query.tab || ChatOpsTab.Slack);
|
||||
this.handleChatopsTabChange(query?.tab || ChatOpsTab.Slack);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
this.handleChatopsTabChange(undefined);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue