Skip to content

Commit

Permalink
fix offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Ivy committed Oct 11, 2024
1 parent b04e514 commit 2c97203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/TestGrid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const TestGrid: React.FC<Props> = () => {
vars.label = ""
}
console.log("pagination.curreent", pagination.current)
vars.offset = (pagination.current ?? 1) - 1;
vars.offset = ((pagination.current ?? 1) - 1) * PAGE_SIZE;
console.log(vars.offset)
setVariables(vars)
},
Expand Down
5 changes: 1 addition & 4 deletions frontend/src/components/TestsMetrics/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { Table, Row, Col, Statistic, Space } from 'antd';
import { Table, Row, Statistic, Space } from 'antd';
import type { StatisticProps, TableColumnsType } from "antd/lib";
import CountUp from 'react-countup';
import TestStatusTag from "../TestStatusTag";
Expand Down Expand Up @@ -27,7 +27,6 @@ const formatter: StatisticProps['formatter'] = (value) => (
);

const test_columns: TableColumnsType<TestDataType> = [

{
title: "Status",
dataIndex: "status",
Expand Down Expand Up @@ -72,7 +71,6 @@ const test_columns: TableColumnsType<TestDataType> = [
},
],
onFilter: (value, record) => record.status == value,

},
{
title: "Label",
Expand All @@ -85,7 +83,6 @@ const test_columns: TableColumnsType<TestDataType> = [
filterIcon: filtered => <SearchFilterIcon icon={<SearchOutlined />} filtered={filtered} />,
onFilter: (value, record) => (record.name.includes(value.toString()) ? true : false)
},

{
title: "Strategy",
dataIndex: "strategy",
Expand Down

0 comments on commit 2c97203

Please sign in to comment.