瀏覽代碼

[FE] Messages filtering by offset & timestamp doesn't work (#3582)

Nail Badiullin 2 年之前
父節點
當前提交
83f9432569
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      kafka-ui-react-app/src/components/Topics/Topic/Messages/Filters/Filters.tsx

+ 5 - 1
kafka-ui-react-app/src/components/Topics/Topic/Messages/Filters/Filters.tsx

@@ -235,9 +235,13 @@ const Filters: React.FC<FiltersProps> = ({
         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 }) => {