Temporary limit tooth log to 500 points

This commit is contained in:
Piotr Rogowski 2022-10-21 11:59:45 +02:00
parent bafc1b6d48
commit 71b1ad0e04
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ const ToothCanvas = ({ data, width, height }: Props) => {
const xData: number[] = [];
const yData: (number | null)[] = [];
data.forEach((entry: ToothLogEntry, index) => {
// NOTE: temporary limit to 500 points
// TODO: add pagination
data.slice(0, 500).forEach((entry: ToothLogEntry, index) => {
if (entry.type === EntryType.TRIGGER) {
yData.push(entry.toothTime);
xData.push(index);