Skip to content

Commit

Permalink
fix: providing the right env key to appLoader (#826)
Browse files Browse the repository at this point in the history
Co-authored-by: Noggling <[email protected]>
  • Loading branch information
Noggling and Noggling authored Oct 22, 2024
1 parent 19f98d8 commit c9b0ad5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/pr-826-2137768494.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

---
"fusion-project-portal": patch
---
providing the right env key to appLoader
4 changes: 2 additions & 2 deletions client/packages/core/src/app/hooks/use-app-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const useAppLoader = (appKey: string) => {
...config,
environment: {
appKey,
env: getFusionLegacyEnvIdentifier(),
fusionEnv: getFusionLegacyEnvIdentifier(),
loadingText: 'Loading',
endpoints: {
client: getLegacyClientConfig(),
Expand All @@ -63,7 +63,7 @@ export const useAppLoader = (appKey: string) => {
} as AppConfig<
ConfigEnvironment & {
appKey: string;
env: string;
fusionEnv: string;
loadingText: string;
endpoints: {
client: Client;
Expand Down

0 comments on commit c9b0ad5

Please sign in to comment.