Fixed topic message search params after navigation to next page. (#140)
Co-authored-by: Sofia Shnaidman <sshnaidman@provectus.com>
This commit is contained in:
parent
181ae1fe45
commit
4bd5f7d9da
1 changed files with 2 additions and 3 deletions
|
@ -62,7 +62,7 @@ const Messages: React.FC<Props> = ({
|
|||
const [selectedSeekType, setSelectedSeekType] = React.useState<SeekType>(
|
||||
SeekType.OFFSET
|
||||
);
|
||||
const [searchOffset, setSearchOffset] = React.useState<string>('0');
|
||||
const [searchOffset, setSearchOffset] = React.useState<string>();
|
||||
const [selectedPartitions, setSelectedPartitions] = React.useState<Option[]>(
|
||||
partitions.map((p) => ({
|
||||
value: p.partition,
|
||||
|
@ -219,12 +219,11 @@ const Messages: React.FC<Props> = ({
|
|||
)
|
||||
.map((p) => `${p.partition}::${p.offset}`);
|
||||
|
||||
setQueryParams({
|
||||
fetchTopicMessages(clusterName, topicName, {
|
||||
...queryParams,
|
||||
seekType: SeekType.OFFSET,
|
||||
seekTo,
|
||||
});
|
||||
fetchTopicMessages(clusterName, topicName, queryParams);
|
||||
};
|
||||
|
||||
const filterOptions = (options: Option[], filter: any) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue