Skip to content
This repository was archived by the owner on Mar 27, 2018. It is now read-only.

Commit 137a689

Browse files
committed
fix(waitForHnData): allow EntityMapper to be rendered without DrupalPage
1 parent 87da45a commit 137a689

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/DrupalPage/waitForHnData.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ import PropTypes from 'prop-types';
44

55
export default async function (children) {
66

7-
const context = {};
7+
const context = {
8+
state: {
9+
drupalPage: null,
10+
entities: [],
11+
},
12+
};
813

914
class DrupalPageContextProvider extends Component {
1015
getChildContext() {

0 commit comments

Comments
 (0)