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

Function setRecord

src/Data/RecordData.js:108–113  ·  view source on GitHub ↗
(record)

Source from the content-addressed store, hash-verified

106}
107
108export async function setRecord(record) {
109 if (!record) {
110 return;
111 }
112 await updateCachedRecords((records) => ({...records, [record.RecordID]: record}));
113}
114
115export async function removeRecord(recordId) {
116 await apiRequest(REMOVE_RECORD, {

Callers 2

setApplicantFunction · 0.90
addModifyRecordFunction · 0.85

Calls 1

updateCachedRecordsFunction · 0.85

Tested by

no test coverage detected