Skip to content

Commit ebc02e6

Browse files
committed
hotfix: page receives props as promise
1 parent bd96bdb commit ebc02e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/management-system-v2/app/(dashboard)/[environmentId]/settings/@tdsSettings

src/management-system-v2/app/(dashboard)/[environmentId]/settings/@tdsSettings/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import SettingsInjector from '../settings-injector';
44
import Wrapper from './wrapper';
55
import { settings } from './settings';
66

7-
const Page = async ({ params }: { params: { environmentId: string } }) => {
7+
const Page = async (props: { params: Promise<{ environmentId: string }> }) => {
8+
const params = await props.params;
89
const {
910
activeEnvironment: { spaceId },
1011
} = await getCurrentEnvironment(params.environmentId);
11-
1212
await populateSpaceSettingsGroup(spaceId, settings);
1313

1414
return (

0 commit comments

Comments
 (0)