remove some console logs

This commit is contained in:
anovazzi1 2023-03-20 10:35:40 -03:00
commit e3fe259ce2
5 changed files with 0 additions and 8 deletions

View file

@ -39,7 +39,6 @@ export default function ParameterComponent({
const [enabled, setEnabled] = useState( const [enabled, setEnabled] = useState(
data.node.template[name]?.value ?? false data.node.template[name]?.value ?? false
); );
console.log(data.node.template[name]);
const { reactFlowInstance } = useContext(typesContext); const { reactFlowInstance } = useContext(typesContext);
let disabled = let disabled =
reactFlowInstance?.getEdges().some((e) => e.targetHandle === id) ?? false; reactFlowInstance?.getEdges().some((e) => e.targetHandle === id) ?? false;

View file

@ -7,7 +7,6 @@ import { SingleAlertComponentType } from "../../../../types/alerts";
export default function SingleAlert({ dropItem, removeAlert}:SingleAlertComponentType) { export default function SingleAlert({ dropItem, removeAlert}:SingleAlertComponentType) {
const [show, setShow] = useState(true); const [show, setShow] = useState(true);
const type = dropItem.type; const type = dropItem.type;
console.log(dropItem.id)
return ( return (
<Transition <Transition

View file

@ -16,7 +16,6 @@ export default function AlertDropdown({}: AlertDropdownType) {
componentRef.current && componentRef.current &&
!componentRef.current.contains(event.target as Node) !componentRef.current.contains(event.target as Node)
) { ) {
console.log(event)
closePopUp(); closePopUp();
} }
} }

View file

@ -31,7 +31,6 @@ export default function Chat({ flow, reactFlowInstance }: ChatType) {
setChatHistory((old) => { setChatHistory((old) => {
let newChat = _.cloneDeep(old); let newChat = _.cloneDeep(old);
if(JSON.stringify(flow.chat) !==JSON.stringify(old)){ if(JSON.stringify(flow.chat) !==JSON.stringify(old)){
console.log(old,flow.chat)
tabsChange = true tabsChange = true
return old return old
} }
@ -43,7 +42,6 @@ export default function Chat({ flow, reactFlowInstance }: ChatType) {
return newChat; return newChat;
}); });
if(tabsChange){ if(tabsChange){
console.log(flow.chat)
if(thought){ if(thought){
updateFlow({..._.cloneDeep(flow),chat:[...flow.chat,{isSend,message,thought}]}) updateFlow({..._.cloneDeep(flow),chat:[...flow.chat,{isSend,message,thought}]})
} }
@ -98,11 +96,9 @@ export default function Chat({ flow, reactFlowInstance }: ChatType) {
let message = chatValue; let message = chatValue;
setChatValue(""); setChatValue("");
addChatHistory(message, true); addChatHistory(message, true);
console.log({ ...reactFlowInstance.toObject(), message, chatHistory });
sendAll({ ...reactFlowInstance.toObject(), message, chatHistory}) sendAll({ ...reactFlowInstance.toObject(), message, chatHistory})
.then((r) => { .then((r) => {
console.log(r.data);
addChatHistory(r.data.result, false, r.data.thought); addChatHistory(r.data.result, false, r.data.thought);
setLockChat(false); setLockChat(false);
}) })

View file

@ -6,6 +6,5 @@ export async function getAll():Promise<AxiosResponse<APIObjectType>> {
} }
export async function sendAll(data:sendAllProps) { export async function sendAll(data:sendAllProps) {
console.log(data);
return await axios.post(`/predict`, data); return await axios.post(`/predict`, data);
} }