remove console.logs

This commit is contained in:
anovazzi1 2024-04-30 14:21:51 -03:00
commit ca1bb8dd36
4 changed files with 0 additions and 7 deletions

View file

@ -27,9 +27,6 @@ export default function AddNewVariableButton({ children }): JSX.Element {
const addGlobalVariable = useGlobalVariablesStore( const addGlobalVariable = useGlobalVariablesStore(
(state) => state.addGlobalVariable (state) => state.addGlobalVariable
); );
console.log(componentFields);
console.log(unavaliableFields);
console.log(availableFields);
function handleSaveVariable() { function handleSaveVariable() {
let data: { name: string; value: string; type?: string; default_fields?: string[] } = { let data: { name: string; value: string; type?: string; default_fields?: string[] } = {

View file

@ -43,7 +43,6 @@ export default function GlobalVariablesPage() {
name: string;default_fields:string | undefined}> = []; name: string;default_fields:string | undefined}> = [];
globalVariablesEntries.forEach((e) => { globalVariablesEntries.forEach((e) => {
const globalVariableObj = globalVariables[e]; const globalVariableObj = globalVariables[e];
console.log(globalVariableObj);
rows.push({ rows.push({
type: globalVariableObj.type, type: globalVariableObj.type,
id: globalVariableObj.id, id: globalVariableObj.id,
@ -51,7 +50,6 @@ export default function GlobalVariablesPage() {
name: e, name: e,
}); });
}); });
console.log(rows);
setRowData(rows); setRowData(rows);
}, [globalVariables]); }, [globalVariables]);

View file

@ -1244,7 +1244,6 @@ export function extractFieldsFromComponenents(data:APIObjectType ) {
}); });
}); });
}); });
console.log(fields);
return fields; return fields;
} }

View file

@ -94,7 +94,6 @@ export function toTitleCase(
export function getUnavailableFields( export function getUnavailableFields(
variables:{[key: string]: { id: string; type: string,default_fields:string[] }} variables:{[key: string]: { id: string; type: string,default_fields:string[] }}
): Set<string> { ): Set<string> {
console.log(variables)
const set = new Set<string>(); const set = new Set<string>();
Object.keys(variables).forEach((key) => { Object.keys(variables).forEach((key) => {
if(variables[key].default_fields){ if(variables[key].default_fields){