Skip to content

Commit

Permalink
fix(standalone): Passing Appsettings to standalone designer services (#…
Browse files Browse the repository at this point in the history
…6210)

small commit
  • Loading branch information
Eric-B-Wu authored Dec 31, 2024
1 parent 0d5ef5d commit 59251b6
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ const DesignerEditor = () => {
canonicalLocation,
language,
queryClient,
settingsData?.properties ?? {},
dispatch
),
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down Expand Up @@ -445,6 +446,7 @@ const getDesignerServices = (
location: string,
locale: string | undefined,
queryClient: QueryClient,
appSettings: Record<string, string>,
dispatch: AppDispatch
): any => {
const siteResourceId = new ArmParser(workflowId).topmostResourceId;
Expand Down Expand Up @@ -473,7 +475,15 @@ const getDesignerServices = (
tenantId,
httpClient,
},
workflowAppDetails: { appName, identity: workflowApp?.identity as any },
workflowAppDetails: isHybrid
? {
appName,
identity: {
principalId: appSettings['WORKFLOWAPP_AAD_OBJECTID'],
tenantId: appSettings['WORKFLOWAPP_AAD_TENANTID'],
},
}
: { appName, identity: workflowApp?.identity as any },
readConnections: () => Promise.resolve(connectionsData),
writeConnection: addConnection as any,
connectionCreationClients: {
Expand Down Expand Up @@ -504,7 +514,7 @@ const getDesignerServices = (
const artifactService = new ArtifactService({
...armServiceParams,
siteResourceId,
integrationAccountCallbackUrl: undefined,
integrationAccountCallbackUrl: appSettings['WORKFLOW_INTEGRATION_ACCOUNT_CALLBACK_URL'],
});
const appService = new BaseAppServiceService({
baseUrl: armUrl,
Expand Down

0 comments on commit 59251b6

Please sign in to comment.