Skip to content

Commit 94baf57

Browse files
committed
fix(app): fix connection cards 'fix' creating a new connection card instead of replacing the current one for epic connections
1 parent 603701a commit 94baf57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: apps/web/src/pages/ConnectionTab.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function setTenantUrlBySource(
7777
// append /api/FHIR/DSTU2/ to the end of the base url, if it doesn't already exist
7878
let baseUrl = item.get('location');
7979
if (
80-
!baseUrl.endsWith('/api/FHIR/DSTU2/') ||
80+
!baseUrl.endsWith('/api/FHIR/DSTU2/') &&
8181
!baseUrl.endsWith('/api/FHIR/DSTU2')
8282
) {
8383
baseUrl = baseUrl + '/api/FHIR/DSTU2/';

Diff for: apps/web/src/pages/EpicRedirect.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ function useEpicDynamicRegistrationLogin() {
110110
user,
111111
navigate,
112112
userPreferences,
113+
search,
113114
]);
114115

115116
return [error];
@@ -265,7 +266,6 @@ const handleLogin = async ({
265266
epicId,
266267
enableProxy,
267268
);
268-
269269
await saveConnectionToDb({
270270
res: jwtAuthResponse,
271271
epicBaseUrl,

0 commit comments

Comments
 (0)