Skip to content

Commit 3bf20eb

Browse files
Merge pull request #152 from zenml-io/QA-Fixes
Qa fixes
2 parents fb91ae9 + 0a175ac commit 3bf20eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ui/layouts/common/Pagination/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const Pagination: React.FC<Props> = forwardRef((props, ref) => {
8989
componentName === 'components' &&
9090
locationPath.pathname.split('/')[6] === 'stacks'
9191
? locationPath.pathname.split('/')[6]
92-
: locationPath.pathname.split('/')[5];
92+
: locationPath.pathname.split('/')[6];
9393
const CheckIfRun =
9494
componentName === 'components'
9595
? locationPath.pathname.split('/')[6]
@@ -121,7 +121,7 @@ export const Pagination: React.FC<Props> = forwardRef((props, ref) => {
121121
siblingCount: 1,
122122
pageSize: props.itemPerPage,
123123
});
124-
console.log(paginationRange, 'paginationRange1');
124+
console.log(CheckIfStackFormComponents, 'paginationRange1');
125125
// if (
126126
// props.pageIndex === 0 ||
127127
// (paginationRange && paginationRange.length < 2)
@@ -166,7 +166,7 @@ export const Pagination: React.FC<Props> = forwardRef((props, ref) => {
166166
locationPath.pathname.split('/')[5],
167167
);
168168
break;
169-
} else if (CheckIfRun && CheckIfStackFormComponents === 'runs') {
169+
} else if (CheckIfStackFormComponents === 'runs') {
170170
dispatchStackComponentRunsData(
171171
id,
172172
page,

src/ui/layouts/common/Table/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export const Table: React.FC<TableProps> = ({
196196
componentName === 'components' &&
197197
locationPath.pathname.split('/')[6] === 'stacks'
198198
? locationPath.pathname.split('/')[6]
199-
: locationPath.pathname.split('/')[5];
199+
: locationPath.pathname.split('/')[6];
200200

201201
const id =
202202
componentName === 'components'

0 commit comments

Comments
 (0)