diff --git a/client/src/pages/authentication/openid.jsx b/client/src/pages/authentication/openid.jsx index ff9ac9e..1756d34 100644 --- a/client/src/pages/authentication/openid.jsx +++ b/client/src/pages/authentication/openid.jsx @@ -44,9 +44,8 @@ const OpenID = () => { const selfHostname = selfprotocol + (new URL(window.location.href).hostname) + (selfport ? ":" + selfport : "") const onchange = (e, scope) => { - console.log(scope) if (e.target.checked) { - setCheckedScopes([...checkedScopes,scope]) + setCheckedScopes([...checkedScopes, scope]) } else { setCheckedScopes(checkedScopes.filter((scope) => scope != scope)) } diff --git a/client/src/pages/config/routes/routeman.jsx b/client/src/pages/config/routes/routeman.jsx index 76646a6..a8db8e0 100644 --- a/client/src/pages/config/routes/routeman.jsx +++ b/client/src/pages/config/routes/routeman.jsx @@ -39,14 +39,21 @@ const checkHost = debounce((host, setHostError) => { }).catch((err) => { setHostError(err.message) }); + } else { + setHostError(null); } }, 500) const RouteManagement = ({ routeConfig, routeNames, TargetContainer, noControls = false, lockTarget = false, title, setRouteConfig, submitButton = false, newRoute }) => { const [openModal, setOpenModal] = React.useState(false); const [hostError, setHostError] = React.useState(null); - + React.useEffect(() => { + if(routeConfig && routeConfig.Host) { + checkHost(routeConfig.Host, setHostError); + } + }, []) + return