From be94f6a399601fa30218a18d39f4e9bf58bfbd5c Mon Sep 17 00:00:00 2001 From: rmanaem Date: Mon, 18 Mar 2024 14:14:17 -0400 Subject: [PATCH] Modified the fix so the default is `false` --- src/utils/constants.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 3761b982..e36c8e8a 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -9,7 +9,10 @@ export const nodesURL: string = baseAPIURL.endsWith('/') ? `${baseAPIURL}nodes/` : `${baseAPIURL}/nodes/`; -export const isFederationAPI: boolean = import.meta.env.NB_IS_FEDERATION_API === 'true'; +export const isFederationAPI: boolean = + import.meta.env.NB_IS_FEDERATION_API === undefined + ? true + : import.meta.env.NB_IS_FEDERATION_API === 'true'; export const sexes: { [key: string]: string } = { male: 'snomed:248153007',