From 8f59ebad0e9673ad6306a9c972ba91c2a3ecd3a6 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 20 Oct 2021 19:35:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20default=20instance=20if=20?= =?UTF-8?q?specified=20in=20envvars?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/instance/InstanceFormBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/instance/InstanceFormBox.tsx b/frontend/src/components/instance/InstanceFormBox.tsx index aa670fe..58e8bb8 100644 --- a/frontend/src/components/instance/InstanceFormBox.tsx +++ b/frontend/src/components/instance/InstanceFormBox.tsx @@ -84,7 +84,7 @@ export function InstanceFormBox(): JSX.Element { const urlField = useFormState( - instance?.state?.url?.toString() ?? "", + instance?.state?.url?.toString() ?? process.env.REACT_APP_DEFAULT_INSTANCE ?? "", onValidate, )