e10tel nicht zum Client übertragen - unnötig

This commit is contained in:
2025-11-05 10:05:03 +00:00
parent bd44740649
commit 1776e2962f

View File

@@ -234,12 +234,13 @@ export const fetchActData = async (opts) => {
// Transform data to add E10tel_eq field for compatibility with Flux version // Transform data to add E10tel_eq field for compatibility with Flux version
// E10tel_eq = 10^(LA_max/10) // E10tel_eq = 10^(LA_max/10)
if (opts.data !== 'live') {
result.values = result.values.map(record => ({ result.values = result.values.map(record => ({
...record, ...record,
E10tel_eq: record.LA_max !== null && record.LA_max !== undefined E10tel_eq: record.LA_max !== null && record.LA_max !== undefined
? Math.pow(10, record.LA_max / 10) ? Math.pow(10, record.LA_max / 10)
: null : null
})) }))}
return result return result
} }