Browse Source

updating situation for automatic Pluviometer

master
analuizaff 3 years ago
parent
commit
aa9a939e11
  1. 6
      src/app/components/AssembleModalObject.js

6
src/app/components/AssembleModalObject.js

@ -146,7 +146,7 @@ const AssembleModalObject = async (response, name, userId, formId) => {
//(waiting for issue #16) user = r[0].formsanswersuserinformer;
if (name == "automaticPluviometer") {
(situation = "PLUVIÔMETRO"),
situation = "PLUVIÔMETRO";
r[0].array_to_json.forEach(function (f) {
var day = { label: null, values: [] };
if (f.fieldname == "medicao") {
@ -165,9 +165,7 @@ const AssembleModalObject = async (response, name, userId, formId) => {
datapluv.forEach((d) => {
if (d.label == measureDate) {
d.values.push(
f.fieldsanswersvalue
? parseFloat(f.fieldsanswersvalue)
: null
f.fieldsanswersvalue ? parseFloat(f.fieldsanswersvalue) : null
);
}
});

Loading…
Cancel
Save