mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 01:25:37 +01:00
Fixed test console.
This commit is contained in:
parent
b9477db1a2
commit
9aa2830d2b
2 changed files with 7 additions and 12 deletions
|
|
@ -5,14 +5,14 @@ async function getEnabled() {
|
|||
return !!process.env.ENABLE_TEST_CONSOLE;
|
||||
}
|
||||
|
||||
export default async function ConsolePage() {
|
||||
export default async function ({ params: { id } }) {
|
||||
const enabled = await getEnabled();
|
||||
|
||||
if (!enabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <TestConsole />;
|
||||
return <TestConsole websiteId={id?.[0]} />;
|
||||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue