-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding a new operation visium QC operation : qPcr results #536
Conversation
setTouched({}); | ||
const measurements = values?.slotMeasurements ? [...values.slotMeasurements] : []; | ||
measurements | ||
?.filter((measurement) => measurement.name === measurementName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need to filter it? I thougt we only have one measurement (Cq value) here? or Is it for future additions?
(values.qcType === QCType.CDNA_AMPLIFICATION && values.slotMeasurements) | ||
) { | ||
sendCDNA({ | ||
type: 'SUBMIT_FORM', | ||
values: { | ||
workNumber: values.workNumber, | ||
barcode: values.barcode, | ||
slotMeasurements: values.slotMeasurements ?? [], | ||
slotMeasurements: values.slotMeasurements?.map(({ samples, ...rest }) => rest) ?? [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we getting rid of 'samples' field? if so, why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, because we don't need in the request, we are just adding some info in the display. also the GraphQL request will fail if we pass the wrong arguments .
}); | ||
}); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't find a test case when there is server error.
merged to devel |
No description provided.