From d9e314bad295463d26d8ffe92728f3b5eee4ad05 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Wed, 7 Apr 2021 22:27:19 -0400 Subject: [PATCH] fix(frontend): autofill with Plex server address (#1381) --- src/components/Settings/SettingsPlex.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Settings/SettingsPlex.tsx b/src/components/Settings/SettingsPlex.tsx index b52c6af68..1127c3898 100644 --- a/src/components/Settings/SettingsPlex.tsx +++ b/src/components/Settings/SettingsPlex.tsx @@ -115,7 +115,6 @@ const SettingsPlex: React.FC = ({ onComplete }) => { hostname: Yup.string() .required(intl.formatMessage(messages.validationHostnameRequired)) .matches( - // eslint-disable-next-line /^(([a-z]|\d|_|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*)?([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])$/i, intl.formatMessage(messages.validationHostnameRequired) ), @@ -394,7 +393,7 @@ const SettingsPlex: React.FC = ({ onComplete }) => { const targPreset = availablePresets[Number(e.target.value)]; if (targPreset) { - setFieldValue('hostname', targPreset.host); + setFieldValue('hostname', targPreset.address); setFieldValue('port', targPreset.port); setFieldValue('useSsl', targPreset.ssl); }