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