Merge pull request #1983 from automatisch/strict-installation-redirection
fix: safeguard redirect to /installation
This commit is contained in:
@@ -32,11 +32,11 @@ import useAuthentication from 'hooks/useAuthentication';
|
||||
import Installation from 'pages/Installation';
|
||||
|
||||
function Routes() {
|
||||
const { data: configData } = useAutomatischConfig();
|
||||
const { data: configData, isSuccess } = useAutomatischConfig();
|
||||
const { isAuthenticated } = useAuthentication();
|
||||
const config = configData?.data;
|
||||
|
||||
const installed = configData?.data?.['installation.completed'] === true;
|
||||
const installed = isSuccess ? config?.['installation.completed'] === true : true;
|
||||
const navigate = useNavigate();
|
||||
|
||||
useEffect(() => {
|
||||
|
Reference in New Issue
Block a user