Skip to content

Commit

Permalink
fix-misc
Browse files Browse the repository at this point in the history
  • Loading branch information
manulera committed Dec 20, 2024
1 parent 1b42a3e commit dd40b8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/DownloadSequenceFileDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ function DownloadSequenceFileDialog({ id, dialogOpen, setDialogOpen, downloadCal
const seqCopy = structuredClone(sequenceData);
const linkedPrimers = useSelector(({ cloning }) => getPrimerLinks(cloning, id), isEqual);
const pcrPrimers = useSelector(({ cloning }) => getPCRPrimers(cloning, id), isEqual);
seqCopy.primers = [...seqCopy.primers, ...linkedPrimers, ...pcrPrimers];
// To be able to use this function for non-state sequences
if (seqCopy) {
seqCopy.primers = [...seqCopy.primers, ...linkedPrimers, ...pcrPrimers];
}
const dispatch = useDispatch();

React.useEffect(() => {
Expand Down

0 comments on commit dd40b8d

Please sign in to comment.