took out unused code for calculating the total acres
This commit is contained in:
parent
a2971c6e44
commit
b7b85c5aed
1 changed files with 0 additions and 9 deletions
|
|
@ -111,15 +111,6 @@ export default function FieldList() {
|
||||||
}
|
}
|
||||||
}, [loadAdaptiveFields, loadJDFields, loadCNHFields, tabValue]);
|
}, [loadAdaptiveFields, loadJDFields, loadCNHFields, tabValue]);
|
||||||
|
|
||||||
const calcTotalAcres = (fields: Field[]) => {
|
|
||||||
let totalAcres = 0;
|
|
||||||
fields.forEach(field => {
|
|
||||||
totalAcres += field.acres();
|
|
||||||
});
|
|
||||||
totalAcres = Math.round(totalAcres);
|
|
||||||
return totalAcres;
|
|
||||||
};
|
|
||||||
|
|
||||||
const goTo = (field: Field) => {
|
const goTo = (field: Field) => {
|
||||||
let path = field.key();
|
let path = field.key();
|
||||||
navigate(path, { state: {field: field, permissions: field.permissions} });
|
navigate(path, { state: {field: field, permissions: field.permissions} });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue