Skip to content

Commit 7b61a9b

Browse files
Fix timestamp search (#75)
1 parent be2d381 commit 7b61a9b

File tree

1 file changed

+4
-1
lines changed
  • kafka-ui-react-app/src/components/Topics/Details/Messages

1 file changed

+4
-1
lines changed

kafka-ui-react-app/src/components/Topics/Details/Messages/Messages.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ const Messages: React.FC<Props> = ({
6767
);
6868
const [searchOffset, setSearchOffset] = React.useState<string>('0');
6969
const [selectedPartitions, setSelectedPartitions] = React.useState<Option[]>(
70-
[]
70+
partitions.map((p) => ({
71+
value: p.partition,
72+
label: p.partition.toString(),
73+
}))
7174
);
7275
const [queryParams, setQueryParams] = React.useState<
7376
Partial<TopicMessageQueryParams>

0 commit comments

Comments
 (0)