Skip to content

Commit 78f89fb

Browse files
committed
minor code fetching modifications in Filters
1 parent a153617 commit 78f89fb

File tree

1 file changed

+1
-5
lines changed
  • kafka-ui-react-app/src/components/Topics/Topic/Messages/Filters

1 file changed

+1
-5
lines changed

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

+1-5
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,7 @@ const Filters: React.FC<FiltersProps> = ({
391391
// eslint-disable-next-line consistent-return
392392
React.useEffect(() => {
393393
if (location.search?.length !== 0) {
394-
const params = new URLSearchParams(location.search);
395-
396-
const url = `${
397-
BASE_PARAMS.basePath
398-
}/api/clusters/${clusterName}/topics/${topicName}/messages?${params.toString()}`;
394+
const url = `${BASE_PARAMS.basePath}/api/clusters/${clusterName}/topics/${topicName}/messages${location.search}`;
399395
const sse = new EventSource(url);
400396

401397
source.current = sse;

0 commit comments

Comments
 (0)