Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions x-pack/plugins/code/public/components/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ interface Props extends RouteProps {
routeChange: (match: Match) => void;
}
class CSRoute extends ReactRoute<Props> {
public componentWillMount() {
// @ts-ignore
super.componentWillMount();
public UNSAFE_componentWillMount() {
this.props.routeChange({ ...this.state.match, location: this.props.location });
}

Expand Down