Skip to content

Commit 2c97203

Browse files
author
Trey Ivy
committed
fix offset
1 parent b04e514 commit 2c97203

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

frontend/src/components/TestGrid/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const TestGrid: React.FC<Props> = () => {
129129
vars.label = ""
130130
}
131131
console.log("pagination.curreent", pagination.current)
132-
vars.offset = (pagination.current ?? 1) - 1;
132+
vars.offset = ((pagination.current ?? 1) - 1) * PAGE_SIZE;
133133
console.log(vars.offset)
134134
setVariables(vars)
135135
},

frontend/src/components/TestsMetrics/index.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { Table, Row, Col, Statistic, Space } from 'antd';
2+
import { Table, Row, Statistic, Space } from 'antd';
33
import type { StatisticProps, TableColumnsType } from "antd/lib";
44
import CountUp from 'react-countup';
55
import TestStatusTag from "../TestStatusTag";
@@ -27,7 +27,6 @@ const formatter: StatisticProps['formatter'] = (value) => (
2727
);
2828

2929
const test_columns: TableColumnsType<TestDataType> = [
30-
3130
{
3231
title: "Status",
3332
dataIndex: "status",
@@ -72,7 +71,6 @@ const test_columns: TableColumnsType<TestDataType> = [
7271
},
7372
],
7473
onFilter: (value, record) => record.status == value,
75-
7674
},
7775
{
7876
title: "Label",
@@ -85,7 +83,6 @@ const test_columns: TableColumnsType<TestDataType> = [
8583
filterIcon: filtered => <SearchFilterIcon icon={<SearchOutlined />} filtered={filtered} />,
8684
onFilter: (value, record) => (record.name.includes(value.toString()) ? true : false)
8785
},
88-
8986
{
9087
title: "Strategy",
9188
dataIndex: "strategy",

0 commit comments

Comments
 (0)