From 2b19f9272e97e4e63f38b8497ad251cfd93c8c6f Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 27 Mar 2023 21:34:39 -0700 Subject: [PATCH] Fix auto-generated keys not saving. Closes #2874 --- web/components/admin/config/server/StreamKeys.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/admin/config/server/StreamKeys.tsx b/web/components/admin/config/server/StreamKeys.tsx index 2ca850215..ff353fead 100644 --- a/web/components/admin/config/server/StreamKeys.tsx +++ b/web/components/admin/config/server/StreamKeys.tsx @@ -57,6 +57,7 @@ const AddKeyForm = ({ setShowAddKeyForm, setFieldInConfigState, streamKeys, setE const [hasChanged, setHasChanged] = useState(true); const [form] = Form.useForm(); const { Item } = Form; + // Password Complexity rules const passwordComplexityRules = []; @@ -98,6 +99,7 @@ const AddKeyForm = ({ setShowAddKeyForm, setFieldInConfigState, streamKeys, setE onFinish={handleAddKey} form={form} style={{ display: 'flex', flexDirection: 'row' }} + initialValues={{ key: defaultKey, comment: 'My new key' }} > - +