aboutsummaryrefslogtreecommitdiff
path: root/packages/exchange-backoffice-ui/src/route.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/exchange-backoffice-ui/src/route.ts')
-rw-r--r--packages/exchange-backoffice-ui/src/route.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/exchange-backoffice-ui/src/route.ts b/packages/exchange-backoffice-ui/src/route.ts
index ed6d8058d..d54f9be83 100644
--- a/packages/exchange-backoffice-ui/src/route.ts
+++ b/packages/exchange-backoffice-ui/src/route.ts
@@ -1,5 +1,5 @@
import { createHashHistory } from "history";
-import { VNode } from "preact";
+import { h as create, VNode } from "preact";
import { useEffect, useState } from "preact/hooks";
const history = createHashHistory();
@@ -64,7 +64,7 @@ export function Router({
}): VNode {
const current = useCurrentLocation(pageList);
if (current !== undefined) {
- return current.page.view(current.values ?? {});
+ return create(current.page.view, current.values);
}
return onNotFound();
}