Skip to content

Commit

Permalink
Fixing error when passing around data from Parent to Child
Browse files Browse the repository at this point in the history
  • Loading branch information
joiecosby committed Jun 10, 2023
1 parent 6ee9ba9 commit 88049fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface DeleteMetadataConfigModalProps {
onSelection?: (deployOptions: DeployOptions) => void;
onClose: () => void;
onDeploy: (file: ArrayBuffer, deployOptions: DeployOptions) => void;
setDeploymentHistoryName?: Undefinable<string>;
setDeploymentHistoryName?: (deploymentHistoryName: Undefinable<string>) => void;
}

export const DeleteMetadataConfigModal: FunctionComponent<DeleteMetadataConfigModalProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface DeployMetadataPackageConfigModalProps {
destinationOrg: SalesforceOrgUi,
deployOptions: DeployOptions
) => void;
setDeploymentHistoryName?: Undefinable<string>;
setDeploymentHistoryName?: (deploymentHistoryName: Undefinable<string>) => void;
}

export const DeployMetadataPackageConfigModal: FunctionComponent<DeployMetadataPackageConfigModalProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface DeployMetadataToOrgConfigModalProps {
onSelection?: (deployOptions: DeployOptions) => void;
onClose: () => void;
onDeploy: (destinationOrg: SalesforceOrgUi, deployOptions: DeployOptions) => void;
setDeploymentHistoryName?: Undefinable<string>;
setDeploymentHistoryName?: (deploymentHistoryName: Undefinable<string>) => void;
}

export const DeployMetadataToOrgConfigModal: FunctionComponent<DeployMetadataToOrgConfigModalProps> = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const DeployMetadataOptions: FunctionComponent<DeployMetadataOptionsProps
const [singlePackage, setSinglePackage] = useState(deployOptions.singlePackage ?? true);
const [testLevel, setTestLevel] = useState<DeployOptionsTestLevel | undefined>(deployOptions.testLevel ?? undefined);
const [runTests, setRunTests] = useState<string[]>(deployOptions.runTests ?? []);
const [deployName, setDeployName] = useState<Undefinable<string>>(setDeploymentHistoryName);
// const [deployName, setDeployName] = useState<Undefinable<string>>();

const [runSpecifiedTestsVisible, setRunSpecifiedTestsVisible] = useState(testLevel === 'RunSpecifiedTests');
const [runTestsStr, setRunTestsStr] = useState<string>(deployOptions.runTests?.join('\n') ?? '');
Expand Down Expand Up @@ -91,7 +91,7 @@ export const DeployMetadataOptions: FunctionComponent<DeployMetadataOptionsProps
<Input label="Deployment History Name" className="slds-grow">
<input
className="slds-input"
value={deployName}
value={undefined}
placeholder="Choose a deployment name"
onChange={(event) => setDeploymentHistoryName(event.target.value)}
autoComplete="off"
Expand Down

0 comments on commit 88049fe

Please sign in to comment.