Skip to content

Commit

Permalink
minor code fetching modifications in Filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgrdich committed Dec 30, 2022
1 parent a153617 commit 78f89fb
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,7 @@ const Filters: React.FC<FiltersProps> = ({
// eslint-disable-next-line consistent-return
React.useEffect(() => {
if (location.search?.length !== 0) {
const params = new URLSearchParams(location.search);

const url = `${
BASE_PARAMS.basePath
}/api/clusters/${clusterName}/topics/${topicName}/messages?${params.toString()}`;
const url = `${BASE_PARAMS.basePath}/api/clusters/${clusterName}/topics/${topicName}/messages${location.search}`;
const sse = new EventSource(url);

source.current = sse;
Expand Down

0 comments on commit 78f89fb

Please sign in to comment.