Skip to content

Commit d1c346b

Browse files
committed
fix: set appropriate attribute when bypassing ENA selector
1 parent 44d068f commit d1c346b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/SequencingStep/components/UploadMyData/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ import { OnConfigure } from "../../../../../../../../../../../../../views/Workfl
22

33
export interface Props {
44
onConfigure: OnConfigure;
5+
stepKey: "readRunsSingle" | "readRunsPaired";
56
}

app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/SequencingStep/components/UploadMyData/uploadMyData.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import { Typography } from "@mui/material";
44
import { TYPOGRAPHY_PROPS } from "@databiosphere/findable-ui/lib/styles/common/mui/typography";
55
import { PAPER_PROPS } from "./constants";
66
import { useEffect } from "react";
7-
import { PAIRED_END_STEP } from "../../step";
87

9-
export const UploadMyData = ({ onConfigure }: Props): JSX.Element => {
8+
export const UploadMyData = ({ onConfigure, stepKey }: Props): JSX.Element => {
109
useEffect(() => {
11-
onConfigure(PAIRED_END_STEP.key, []);
10+
onConfigure(stepKey, []);
1211
}, [onConfigure]);
1312
return (
1413
<StyledPaper {...PAPER_PROPS}>

app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/SequencingStep/sequencingStep.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const SequencingStep = ({
3737
stepKey={stepKey as "readRunsSingle" | "readRunsPaired"}
3838
/>
3939
) : (
40-
<UploadMyData onConfigure={onConfigure} />
40+
<UploadMyData onConfigure={onConfigure} stepKey={stepKey as "readRunsSingle" | "readRunsPaired"} />
4141
)}
4242
</StepContent>
4343
</Step>

0 commit comments

Comments
 (0)