diff --git a/src/common/router.js b/src/common/router.js
index b5179bd568b590f53012addf7c9f08e31f35e0dc..1608323d9d88f6fa34545be1130666adb92aef0e 100644
--- a/src/common/router.js
+++ b/src/common/router.js
@@ -9,13 +9,10 @@ const dynamicWrapper = (app, models, component) => dynamic({
models: () => models.filter(m => !app._models.some(({ namespace }) => namespace === m)).map(m => import(`../models/${m}.js`)),
// add routerData prop
component: () => {
- const p = component();
const routerData = getRouterData(app);
- return new Promise((resolve, reject) => {
- p.then((raw) => {
- const Comp = raw.default || raw;
- resolve(props => );
- }).catch(err => reject(err));
+ return component().then((raw) => {
+ const Component = raw.default || raw;
+ return props => ;
});
},
});