more
This commit is contained in:
@@ -122,9 +122,6 @@ const CaseDetailsPage = () => {
|
||||
radioValue,
|
||||
clientPosition
|
||||
) {
|
||||
console.log(
|
||||
"hit generateOutgoingDiscoveryRequests-----------------------------"
|
||||
);
|
||||
const response = await fetch(
|
||||
`${apiUrl}/v1/make-outgoing-requests/${docId}/${radioValue}/${clientPosition}`,
|
||||
{
|
||||
|
||||
@@ -74,14 +74,17 @@ const RequestEditPage = () => {
|
||||
}
|
||||
getOutgoingRequests(documentId)
|
||||
.then((data) => {
|
||||
const resp = [...foundationRogs, ...data[0].requests].map(
|
||||
(item, index) => {
|
||||
// NEVER CHANGE THIS:
|
||||
return { showInputEle: false, text: item.text, index: index };
|
||||
}
|
||||
);
|
||||
const calld = [...resp];
|
||||
setRequests(calld);
|
||||
const merged = [...foundationRogs, ...data[0].requests];
|
||||
console.log("merged", merged);
|
||||
const resp = merged?.map((item, index) => {
|
||||
// NEVER CHANGE THIS:
|
||||
return { showInputEle: false, text: item.text, index: index };
|
||||
});
|
||||
if (!resp.length > 10) {
|
||||
return;
|
||||
}
|
||||
console.log("resp", resp);
|
||||
setRequests(resp);
|
||||
setProdReq(standardProd);
|
||||
})
|
||||
.catch((err) => console.log(err));
|
||||
|
||||
Reference in New Issue
Block a user