mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 16:01:32 -05:00
Merge pull request #4137 from overleaf/jpa-fix-metrics-collection
[PdfJsMetrics] fix metrics collection with disabled service worker GitOrigin-RevId: 607ecd15a3b95b33a45506c489557e5116168c3d
This commit is contained in:
parent
58c7b6188f
commit
862f7f413a
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ function submitCompileMetrics(metrics) {
|
||||||
function submitPDFBandwidth(metrics) {
|
function submitPDFBandwidth(metrics) {
|
||||||
const metricsFlat = {}
|
const metricsFlat = {}
|
||||||
Object.entries(metrics).forEach(([section, items]) => {
|
Object.entries(metrics).forEach(([section, items]) => {
|
||||||
|
if (!items) return
|
||||||
Object.entries(items).forEach(([key, value]) => {
|
Object.entries(items).forEach(([key, value]) => {
|
||||||
metricsFlat[section + '_' + key] = value
|
metricsFlat[section + '_' + key] = value
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue