Temporary limit tooth log to 500 points
This commit is contained in:
parent
bafc1b6d48
commit
71b1ad0e04
|
@ -33,7 +33,9 @@ const ToothCanvas = ({ data, width, height }: Props) => {
|
||||||
const xData: number[] = [];
|
const xData: number[] = [];
|
||||||
const yData: (number | null)[] = [];
|
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) {
|
if (entry.type === EntryType.TRIGGER) {
|
||||||
yData.push(entry.toothTime);
|
yData.push(entry.toothTime);
|
||||||
xData.push(index);
|
xData.push(index);
|
||||||
|
|
Loading…
Reference in New Issue