From ea1ed11e7225aef00b4ebfa230bcf9169fc858cd Mon Sep 17 00:00:00 2001
From: Gabe Kangas
Date: Wed, 24 Mar 2021 14:12:22 -0700
Subject: [PATCH] Changing server url was resetting other updated fields (#86)
* changing url was resetting other fields. Closes https://github.com/owncast/owncast/issues/854
* specify config path for various instanceDetails fields instead
* fix react warning
Co-authored-by: gingervitis
---
web/components/config/edit-instance-details.tsx | 11 +++++------
web/styles/globals.scss | 3 +++
web/utils/config-constants.tsx | 5 +++++
3 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/web/components/config/edit-instance-details.tsx b/web/components/config/edit-instance-details.tsx
index 70e1dbac1..1be3cc901 100644
--- a/web/components/config/edit-instance-details.tsx
+++ b/web/components/config/edit-instance-details.tsx
@@ -124,13 +124,12 @@ export default function EditInstanceDetails() {
Learn more
.
- {!yp.instanceUrl && (
-
-
- You must set your server URL above to enable the directory.
-
- )}
+ {!yp.instanceUrl && (
+
+ You must set your Server URL above to enable the directory.
+
+ )}