This commit is contained in:
Kenneth Jannette
2024-03-09 09:34:28 -06:00
parent c551d8e1d6
commit 71213600ff
3 changed files with 16 additions and 15 deletions

View File

@@ -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));