Skip to content

Commit

Permalink
took off console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sara Fatih authored and Sara Fatih committed Aug 28, 2023
1 parent daf78d0 commit 9743e3e
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ export const parseInput = async (
}
const extractedVariableArrays = chat.messages.map((message) => {
var messageVars = extractVariables(message.content)
console.log("messageVars:", messageVars)
return messageVars
})

const extractedVariables = _.flatten(extractedVariableArrays)
console.log("extractedVariables:", extractedVariables)

const uniqueVariables = extractedVariables.reduce((uniqueArr: (NumberParam | TextParam | null)[], currentVariable: NumberParam | TextParam | null) => {
const existingVariable = uniqueArr.find(variable => variable?.id === currentVariable?.id);
Expand All @@ -68,7 +66,6 @@ export const parseInput = async (
return uniqueArr;
}, []);

console.log("uniquevariables: ", uniqueVariables)

if (uniqueVariables) {
// extracted variables that already existed in the previous input are assigned the previous value
Expand Down

0 comments on commit 9743e3e

Please sign in to comment.