diff --git a/plugins/woocommerce-admin/client/layout/controller.js b/plugins/woocommerce-admin/client/layout/controller.js index 80262ff28b4..e42c266583b 100644 --- a/plugins/woocommerce-admin/client/layout/controller.js +++ b/plugins/woocommerce-admin/client/layout/controller.js @@ -104,20 +104,11 @@ export class Controller extends Component { return query; } - // @todo What should we display or do when a route/page doesn't exist? - render404() { - return null; - } - render() { const { page, match, location } = this.props; const { url, params } = match; const query = this.getBaseQuery( location.search ); - if ( ! page ) { - return this.render404(); - } - window.wpNavMenuUrlUpdate( page, query ); window.wpNavMenuClassChange( page, url ); return createElement( page.container, { params, path: url, pathMatch: page.path, query } );