diff --git a/frontend/packages/manager/src/components/ValidateInventoryAndGroup.jsx b/frontend/packages/manager/src/components/ValidateInventoryAndGroup.jsx index 84db40d..b80d83a 100644 --- a/frontend/packages/manager/src/components/ValidateInventoryAndGroup.jsx +++ b/frontend/packages/manager/src/components/ValidateInventoryAndGroup.jsx @@ -13,7 +13,6 @@ const validateInventoryAndGroup = (validationObj) => { profiles: [] }; let isValid = true; - console.log(validationObj); // Validate group name if (validationObj.hasOwnProperty("groupName")){ @@ -107,7 +106,6 @@ const validateInventoryAndGroup = (validationObj) => { // Validate profiles if (validationObj.hasOwnProperty("profiles") && validationObj.hasOwnProperty("initProfiles")){ - console.log(validationObj.initProfiles); for (const prof of validationObj.profiles){ if (!validationObj.initProfiles.includes(prof)){ isValid = false; diff --git a/frontend/packages/manager/src/components/groups/AddDeviceModal.jsx b/frontend/packages/manager/src/components/groups/AddDeviceModal.jsx index b37396e..8cc4f91 100644 --- a/frontend/packages/manager/src/components/groups/AddDeviceModal.jsx +++ b/frontend/packages/manager/src/components/groups/AddDeviceModal.jsx @@ -60,7 +60,6 @@ function AddDeviceModal(){ }; const handleApply = useCallback((e) => { - console.log("aplying") const deviceObj = { address: GrCtx.address, port: GrCtx.port, @@ -71,7 +70,6 @@ function AddDeviceModal(){ groupId: GrCtx.groupID, onlyAdress: true, }; - console.log(deviceObj); const validation = validateInventoryAndGroup(deviceObj) delete deviceObj.onlyAdress; @@ -79,10 +77,8 @@ function AddDeviceModal(){ // form is valid ValCtx.resetAllErrors(); if (GrCtx.isDeviceEdit){ - console.log("updating device") updateDevice(deviceObj, GrCtx.deviceID) }else{ - console.log("posting new device") postDevice(deviceObj); } GrCtx.setEditedGroupID(GrCtx.groupID); diff --git a/frontend/packages/manager/src/components/groups/GroupsList.jsx b/frontend/packages/manager/src/components/groups/GroupsList.jsx index 7d3b153..dfd792e 100644 --- a/frontend/packages/manager/src/components/groups/GroupsList.jsx +++ b/frontend/packages/manager/src/components/groups/GroupsList.jsx @@ -20,7 +20,6 @@ function GroupsList() { useEffect(() => { let isMounted = true; - console.log('use effect') axios.get('http://127.0.0.1:5000/groups') .then((response) => { if (isMounted){ @@ -37,7 +36,6 @@ function GroupsList() { setOpenedGroups(opened); } } - console.log('data: ', response.data); }); GrCtx.setEditedGroupID(null); return () => { isMounted = false } @@ -70,7 +68,6 @@ function GroupsList() { axios.get(`http://127.0.0.1:5000/group/${groupID}/devices`) .then((response) => { GrCtx.setDevices(response.data); - console.log(`devices for groupID ${groupID}:`, response.data); }) } diff --git a/frontend/packages/manager/src/components/inventory/AddInventoryModal.jsx b/frontend/packages/manager/src/components/inventory/AddInventoryModal.jsx index c7c08ca..ac460e0 100644 --- a/frontend/packages/manager/src/components/inventory/AddInventoryModal.jsx +++ b/frontend/packages/manager/src/components/inventory/AddInventoryModal.jsx @@ -65,8 +65,6 @@ function AddInventoryModal() { smartProfiles: InvCtx.smartProfiles, initProfiles: initProfiles } - console.log("Aplying inventory") - console.log(inventoryObj) const validation = validateInventoryAndGroup(inventoryObj) delete inventoryObj.initProfiles; diff --git a/frontend/packages/manager/src/components/profiles/ProfilePanel.jsx b/frontend/packages/manager/src/components/profiles/ProfilePanel.jsx index 20b1567..609c35d 100644 --- a/frontend/packages/manager/src/components/profiles/ProfilePanel.jsx +++ b/frontend/packages/manager/src/components/profiles/ProfilePanel.jsx @@ -44,12 +44,10 @@ function ProfilePanel() { useEffect(() => { let isMounted = true; - console.log('use effect') axios.get('http://127.0.0.1:5000/profiles') .then((response) => { if (isMounted) setProfiles(response.data); - console.log('data: ', response.data); }) return () => { isMounted = false } }, [ProfCtx.profilesChange]);