We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a11ffaf commit d6c3cddCopy full SHA for d6c3cdd
web-ui/src/pages/PulseReportPage.jsx
@@ -328,7 +328,13 @@ const PulseReportPage = () => {
328
});
329
if (res.error) return;
330
331
- const pulses = res.payload.data;
+ // Get the pulses and filter out invalid data.
332
+ const pulses = res.payload.data.filter((pulse) => {
333
+ return pulse.internalScore > 0 && pulse.internalScore <= 5 &&
334
+ (pulse.externalScore == null ||
335
+ (pulse.externalScore > 0 && pulse.externalScore <= 5));
336
+ });
337
+
338
// Sort the pulses on their submission date.
339
pulses.sort((p1, p2) => {
340
const [year1, month1, day1] = p1.submissionDate;
0 commit comments