From 609efd63b806464d4e8d6c731919fb824f66a192 Mon Sep 17 00:00:00 2001 From: Nail Badiullin Date: Wed, 29 Mar 2023 11:14:36 +0400 Subject: [PATCH] bugfix/topic-messages-filter fix seekTo property for OFFSET seekType --- .../components/Topics/Topic/Messages/Filters/Filters.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kafka-ui-react-app/src/components/Topics/Topic/Messages/Filters/Filters.tsx b/kafka-ui-react-app/src/components/Topics/Topic/Messages/Filters/Filters.tsx index ec62f266ed4..056ef15abdb 100644 --- a/kafka-ui-react-app/src/components/Topics/Topic/Messages/Filters/Filters.tsx +++ b/kafka-ui-react-app/src/components/Topics/Topic/Messages/Filters/Filters.tsx @@ -231,9 +231,13 @@ const Filters: React.FC = ({ props.seekType = SeekType.TIMESTAMP; } + const isSeekTypeWithSeekTo = + props.seekType === SeekType.TIMESTAMP || + props.seekType === SeekType.OFFSET; + if ( selectedPartitions.length !== partitions.length || - currentSeekType === SeekType.TIMESTAMP + isSeekTypeWithSeekTo ) { // not everything in the partition is selected props.seekTo = selectedPartitions.map(({ value }) => {