mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
stats: Fix Other calculation.
In commit 2248d4d9a4 (#13883) I
incorrectly migrated a loop. Fixes #14052.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
62a7e464fb
commit
eee784312d
@@ -362,7 +362,7 @@ function compute_summary_chart_data(time_series_data, num_steps, labels_) {
|
||||
});
|
||||
if (data.size !== 0) {
|
||||
labels[labels.length - 1] = "Other";
|
||||
for (const sum of data) {
|
||||
for (const sum of data.values()) {
|
||||
values[labels.length - 1] += sum;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user