Commit ac140309 authored by Maxym Borodenko's avatar Maxym Borodenko

Merge branch '625-data-on-admin-pages-aren-t-loaded-if-user-refreshes-the-page' into 'master'

Resolve "Data on admin pages aren't loaded if user refreshes the page"

Closes #625

See merge request genesys-pgr/genesys-ui!611
parents e83660bf 009cbd76
...@@ -17,7 +17,7 @@ export default function CustomReactLoadable(opts) { ...@@ -17,7 +17,7 @@ export default function CustomReactLoadable(opts) {
loader: () => loader() loader: () => loader()
.then((res) => { .then((res) => {
// console.log('What is ', component); // console.log('What is ', component);
component.needs = res.default.needs; component.needs = res.default.needs || (res.default.WrappedComponent && res.default.WrappedComponent.needs);
return res; return res;
}), }),
...rest, ...rest,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment