Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#65 Live demo white screen #73

Merged
merged 4 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed white screen when trying to open the live demo
  • Loading branch information
ialakey committed Jun 12, 2024
commit e580a6726257627f6d55aebcf5e46dff2af57994
6 changes: 2 additions & 4 deletions web/src/containers/App/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import queryString from 'query-string';
import { useEffect, useRef } from 'react';
import { Route, Routes, useLocation, Navigate } from 'react-router-dom';
import { getData, setData } from 'web/src/services/localStorage';
import { setData } from 'web/src/services/localStorage';

import { RenderRemoteData } from 'fhir-react/lib/components/RenderRemoteData';
import { useService } from 'fhir-react/lib/hooks/service';
Expand Down Expand Up @@ -84,9 +84,7 @@ function SignIn(props: SignInProps) {
if (clientId) {
authorize(clientId, { nextUrl: props.originPathName });
} else {
const storageData = getData();
const baseUrl = storageData.connection.baseUrl;
window.location.href = baseUrl + '?client=sdc-ide';
authorize('sdc-ide', { nextUrl: props.originPathName });
}

return null;
Expand Down