File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments