Skip to content

Commit

Permalink
Removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dallascrichmond committed Jan 27, 2025
1 parent 291ee50 commit b47c794
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frontend/src/views/FieldAndSoil/Crops/Crops.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ export default function Crops({ fields, setFields }: FieldListProps) {

const handleChange = (e: { target: { name: any; value: any } }) => {
const { name, value } = e.target;
console.log('Name: ', name);
console.log('Value: ', value);
setCombinedCropsData({ ...combinedCropsData, [name]: value });
console.log('Combined Crops Data: ', combinedCropsData);
if (name === 'cropTypeId') {
const selectedCropType = cropsDatabase.filter(
(type) => type.croptypeid === parseInt(value, 10),
Expand Down Expand Up @@ -89,8 +86,6 @@ export default function Crops({ fields, setFields }: FieldListProps) {

useEffect(() => {
axios.get('http://localhost:3000/api/croptypes/').then((response) => {
console.log(response.data);

setCropTypesDatabase(response.data);
});
axios.get('http://localhost:3000/api/crops/').then((response) => {
Expand Down

0 comments on commit b47c794

Please sign in to comment.