|
|
@ -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 |
|
|
|
); |
|
|
|
} |
|
|
|
}); |
|
|
|