Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): Handle 404 on alert rule details #29636

Merged
merged 2 commits into from
Oct 29, 2021
Merged

Conversation

matejminar
Copy link
Member

Before

image

After

image

@matejminar matejminar requested a review from a team October 28, 2021 15:07
render() {
const {rule, incidents, hasError, selectedIncident} = this.state;
const {params} = this.props;
const timePeriod = this.getTimePeriod();

return (
return !hasError ? (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think an early return might be easier to read, but it's fine either way

if (hasError) {
	return this.renderError()
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants