File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const PageTypes = {
2121 */
2222const App = ( { resource, problem } ) => {
2323 if ( problem ) {
24- const statusCode = problem . response . status ;
24+ const statusCode = problem . status ;
2525 const phrases = {
2626 403 : 'Sign in or get out!' ,
2727 404 : "Oops, this is not the page you're looking for." ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { renderToString } from "react-dom/server";
88 * This is used for server-side rendering. Notice that the App component receives a "resource" parameter in the same
99 * manner as in the browser-only Socket component.
1010 */
11- const render = ( { resource, problem} ) => renderToString ( < App resource = { resource } /> ) ;
11+ const render = ( { resource, problem} ) => renderToString ( < App resource = { resource } problem = { problem } /> ) ;
1212
1313// It is important to export a function named "render" from this file. This is how the Applura service loads and renders
1414// the application on the server. This file should not contain a default export.
You can’t perform that action at this time.
0 commit comments