Skip to content

Commit

Permalink
fix:Partition 20+ cannot be selected in the message browser (#1262)
Browse files Browse the repository at this point in the history
Signed-off-by: hemahg <[email protected]>
  • Loading branch information
hemahg authored Dec 3, 2024
1 parent 2933990 commit f4958d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/components/MessagesTable/components/PartitionSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { SelectList } from "@patternfly/react-core";
import { useTranslations } from "next-intl";
import { useCallback, useMemo, useState } from "react";

const MAX_OPTIONS = 20;

export type PartitionSelectorProps = {
value: number | undefined;
partitions: number | undefined;
Expand Down Expand Up @@ -40,7 +38,7 @@ export function PartitionSelector({

const makeOptions = useCallback(
(values: number[]) => {
const options = values.slice(0, MAX_OPTIONS).map((v) => (
const options = values.map((v) => (
<SelectOption
key={v}
value={v}
Expand Down Expand Up @@ -86,6 +84,7 @@ export function PartitionSelector({
<Select
onSelect={(_, value) => handleChange(value as string)}
onOpenChange={setIsOpen}
isScrollable={true}
isOpen={isOpen}
id={titleId}
data-testid={"partition-selector"}
Expand Down

0 comments on commit f4958d7

Please sign in to comment.