This commit is contained in:
Kenneth Jannette
2024-01-18 15:16:55 -06:00
parent 0bcd20ecce
commit 971ce1aad9
4 changed files with 6 additions and 8 deletions

View File

@@ -118,7 +118,7 @@ const DocEditPage = () => {
];
/*
* GET docuement (info) from Firebase
* GET docuement data from Firebase
* */
useEffect(() => {
@@ -142,7 +142,7 @@ const DocEditPage = () => {
if (!documentId || !documentType) {
return;
}
// TODO: *BUG* still sometimes gens repsonses after first one, maybe state is not updating
// TODO: possible *BUG* sometimes sends network req to gen repsonses after first (maybe state is not updating?)
getParsedRequests(documentId, documentType);
if (responsesCreated > 0) {
getCompletions(documentId)
@@ -247,7 +247,7 @@ const DocEditPage = () => {
}
const docType = String(documentType);
let mode;
//TODO: remove isRequests var
//TODO: remove isRequests var if not goign to use
const isRequests = false;
console.log(
"generateResponsesCombined docmentId docType",

View File

@@ -114,10 +114,7 @@ const DocumentListPage = ({ perPage }) => {
const selectedDoc = allDocs.filter((doc) => {
return doc.documentId == selectedDocumentId;
});
console.log(
"selectedDoc[0].responseGenerations",
selectedDoc[0].responseGenerations
);
const respGens = selectedDoc[0].responseGenerations;
try {