Commit 009cbd76 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov

Fix: Data on admin pages aren't loaded if user refreshes the page

- fix possible nullptr
parent e83660bf
......@@ -17,7 +17,7 @@ export default function CustomReactLoadable(opts) {
loader: () => loader()
.then((res) => {
// console.log('What is ', component);
component.needs = res.default.needs;
component.needs = res.default.needs || (res.default.WrappedComponent && res.default.WrappedComponent.needs);
return res;
}),
...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