Skip to content

Commit

Permalink
feat: resolved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarRajput-7 committed Nov 7, 2024
1 parent 27e62b0 commit 723b211
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ import {
MessagingQueuesPayloadProps,
} from './getConsumerLagDetails';

const INITIAL_PAGE_SIZE = 10;

// eslint-disable-next-line sonarjs/cognitive-complexity
export function getColumns(
data: MessagingQueuesPayloadProps['payload'],
Expand Down Expand Up @@ -155,8 +157,8 @@ function MessagingQueuesTable({

const paginationConfig = useMemo(
() =>
tableData?.length > 10 && {
pageSize: 10,
tableData?.length > INITIAL_PAGE_SIZE && {
pageSize: INITIAL_PAGE_SIZE,
showTotal: showPaginationItem,
showSizeChanger: false,
hideOnSinglePage: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ function ErrorTitleAndKey({
isLeaf?: boolean;
}): TreeDataNode {
const handleRedirection = (): void => {
console.log('Redirect to the error page', parentTitle);

let link = '';

switch (parentTitle) {
Expand Down

0 comments on commit 723b211

Please sign in to comment.