Skip to content

Commit 93761cf

Browse files
committed
Fix Engine /configuration page textarea populated with correct data
1 parent d1d3fdc commit 93761cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/dashboard/src/components/engine/configuration/cors.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const EngineCorsConfig: React.FC<EngineCorsConfigProps> = ({
2929
);
3030

3131
const form = useForm<CorsForm>({
32-
defaultValues: { raw: existingUrls?.join("\n") ?? "" },
32+
values: { raw: existingUrls?.join("\n") ?? "" },
3333
});
3434

3535
const onSubmit = async (data: CorsForm) => {

apps/dashboard/src/components/engine/configuration/ip-allowlist.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const EngineIpAllowlistConfig: React.FC<
3434
const { data: engineHealthInfo } = useEngineSystemHealth(instanceUrl);
3535

3636
const form = useForm<IpForm>({
37-
defaultValues: { raw: existingIpAllowlist?.join("\n") ?? "" },
37+
values: { raw: existingIpAllowlist?.join("\n") ?? "" },
3838
});
3939

4040
const onSubmit = async (data: IpForm) => {

0 commit comments

Comments
 (0)