Skip to content

Commit

Permalink
Merge pull request #200 from jetstreamapp/bug/198
Browse files Browse the repository at this point in the history
Fix deploy metadata between orgs
  • Loading branch information
paustint authored Mar 11, 2023
2 parents 9d5b81e + b2a31d6 commit 1bc7da1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const DeployMetadataToOrg: FunctionComponent<DeployMetadataToOrgProps> =
{configModalOpen && selectedMetadata && (
<DeployMetadataToOrgConfigModal
sourceOrg={selectedOrg}
initialOptions={deployMetadataOptions || {}}
initialOptions={deployMetadataOptions}
initialSelectedDestinationOrg={destinationOrg}
selectedMetadata={selectedMetadata}
onClose={handleCloseConfigModal}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css } from '@emotion/react';
import { useNonInitialEffect } from '@jetstream/shared/ui-utils';
import { DeployOptions, ListMetadataResult, MapOf, SalesforceOrgUi } from '@jetstream/types';
import { DeployOptions, ListMetadataResult, MapOf, Maybe, SalesforceOrgUi } from '@jetstream/types';
import { Grid, GridCol, Icon, Modal } from '@jetstream/ui';
import { Fragment, FunctionComponent, useEffect, useRef, useState } from 'react';
import { useRecoilValue } from 'recoil';
Expand All @@ -13,7 +13,7 @@ const DISABLED_OPTIONS = new Set<keyof DeployOptions>(['allowMissingFiles', 'aut

export interface DeployMetadataToOrgConfigModalProps {
sourceOrg: SalesforceOrgUi;
initialOptions?: DeployOptions;
initialOptions?: Maybe<DeployOptions>;
initialSelectedDestinationOrg?: SalesforceOrgUi;
selectedMetadata: MapOf<ListMetadataResult[]>;
onSelection?: (deployOptions: DeployOptions) => void;
Expand Down

0 comments on commit 1bc7da1

Please sign in to comment.