From ca1bb8dd36140f615533b61309cef4c34f653546 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 30 Apr 2024 14:21:51 -0300 Subject: [PATCH] remove console.logs --- .../addNewVariableButtonComponent/addNewVariableButton.tsx | 3 --- .../src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx | 2 -- src/frontend/src/utils/reactflowUtils.ts | 1 - src/frontend/src/utils/utils.ts | 1 - 4 files changed, 7 deletions(-) diff --git a/src/frontend/src/components/addNewVariableButtonComponent/addNewVariableButton.tsx b/src/frontend/src/components/addNewVariableButtonComponent/addNewVariableButton.tsx index b5a3dde26..a0da18db9 100644 --- a/src/frontend/src/components/addNewVariableButtonComponent/addNewVariableButton.tsx +++ b/src/frontend/src/components/addNewVariableButtonComponent/addNewVariableButton.tsx @@ -27,9 +27,6 @@ export default function AddNewVariableButton({ children }): JSX.Element { const addGlobalVariable = useGlobalVariablesStore( (state) => state.addGlobalVariable ); - console.log(componentFields); - console.log(unavaliableFields); - console.log(availableFields); function handleSaveVariable() { let data: { name: string; value: string; type?: string; default_fields?: string[] } = { diff --git a/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx b/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx index cc65efcdb..802663924 100644 --- a/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx +++ b/src/frontend/src/pages/SettingsPage/pages/GlobalVariablesPage/index.tsx @@ -43,7 +43,6 @@ export default function GlobalVariablesPage() { name: string;default_fields:string | undefined}> = []; globalVariablesEntries.forEach((e) => { const globalVariableObj = globalVariables[e]; - console.log(globalVariableObj); rows.push({ type: globalVariableObj.type, id: globalVariableObj.id, @@ -51,7 +50,6 @@ export default function GlobalVariablesPage() { name: e, }); }); - console.log(rows); setRowData(rows); }, [globalVariables]); diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index ad1244495..df56e0711 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -1244,7 +1244,6 @@ export function extractFieldsFromComponenents(data:APIObjectType ) { }); }); }); - console.log(fields); return fields; } diff --git a/src/frontend/src/utils/utils.ts b/src/frontend/src/utils/utils.ts index 43c8549eb..53c61ee77 100644 --- a/src/frontend/src/utils/utils.ts +++ b/src/frontend/src/utils/utils.ts @@ -94,7 +94,6 @@ export function toTitleCase( export function getUnavailableFields( variables:{[key: string]: { id: string; type: string,default_fields:string[] }} ): Set { - console.log(variables) const set = new Set(); Object.keys(variables).forEach((key) => { if(variables[key].default_fields){