Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix for domLoad value

kruzhambus5d852b38a2ec
diff --git a/src/pages/Project/View/ViewProject.helpers.tsx b/src/pages/Project/View/ViewProject.helpers.tsx
index 9477e6eaf..cdb1e9f63 100644
--- a/src/pages/Project/View/ViewProject.helpers.tsx
+++ b/src/pages/Project/View/ViewProject.helpers.tsx
@@ -336,10 +336,14 @@ const getColumnsPerf = (chart: {
const getValueForTooltipPerfomance = (chart: {
[key: string]: string[],
}, id: string, index: number) => {
- if (id === 'dns' || id === 'tls' || id === 'conn' || id === 'response' || id === 'render' || id === 'dom_load' || id === 'ttfb') {
+ if (id === 'dns' || id === 'tls' || id === 'conn' || id === 'response' || id === 'render' || id === 'ttfb') {
return chart[id] ? chart[id][index] : 0
}
+ if (id === 'dom_load') {
+ return chart.domLoad ? chart.domLoad[index] : 0
+ }
+
if (id === 'frontend') {
const sum = sumArrays(chart.render, chart.dom_load)
return sum ? sum[index] : 0