diff --git a/services/web/frontend/js/features/pdf-preview/util/output-files.js b/services/web/frontend/js/features/pdf-preview/util/output-files.js index e7178982c1..ad437ece4f 100644 --- a/services/web/frontend/js/features/pdf-preview/util/output-files.js +++ b/services/web/frontend/js/features/pdf-preview/util/output-files.js @@ -199,7 +199,7 @@ export const buildRuleDeltas = (ruleCounts, previousRuleCounts) => { // keys that are no longer defined in the current log entries for (const [key, value] of Object.entries(previousRuleCounts)) { - if (!(key in counts)) { + if (!(key in ruleCounts)) { counts[key] = 0 counts[`delta_${key}`] = -value }