MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / action

Function action

src/Components/Modify/Record/AddModifyRecord.jsx:60–65  ·  view source on GitHub ↗
({request})

Source from the content-addressed store, hash-verified

58}
59
60export async function action({request}) {
61 const formData = await request.formData();
62 const {applicantId, fromPath, requestBody} = createRecordRequestBody(formData);
63 await addModifyRecord(requestBody);
64 return redirect(safeLocalPath(fromPath, profileApplicantPath(applicantId)));
65}
66
67function RecordOptionField({
68 endAdornment,

Callers

nothing calls this directly

Calls 4

addModifyRecordFunction · 0.90
safeLocalPathFunction · 0.90
profileApplicantPathFunction · 0.90
createRecordRequestBodyFunction · 0.85

Tested by

no test coverage detected