ソースを参照

Update Filters.tsx (#913)

Alexander Krivonosov 3 年 前
コミット
fe0294798c

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

@@ -17,6 +17,7 @@ import MultiSelect from 'react-multi-select-component';
 import { Option } from 'react-multi-select-component/dist/lib/interfaces';
 import { Option } from 'react-multi-select-component/dist/lib/interfaces';
 import BytesFormatted from 'components/common/BytesFormatted/BytesFormatted';
 import BytesFormatted from 'components/common/BytesFormatted/BytesFormatted';
 import { TopicName, ClusterName } from 'redux/interfaces';
 import { TopicName, ClusterName } from 'redux/interfaces';
+import { BASE_PARAMS } from 'lib/constants';
 
 
 import {
 import {
   filterOptions,
   filterOptions,
@@ -172,7 +173,7 @@ const Filters: React.FC<FiltersProps> = ({
   // eslint-disable-next-line consistent-return
   // eslint-disable-next-line consistent-return
   React.useEffect(() => {
   React.useEffect(() => {
     if (location.search.length !== 0) {
     if (location.search.length !== 0) {
-      const url = `/api/clusters/${clusterName}/topics/${topicName}/messages${location.search}`;
+      const url = `${BASE_PARAMS.basePath}/api/clusters/${clusterName}/topics/${topicName}/messages${location.search}`;
       const sse = new EventSource(url);
       const sse = new EventSource(url);
 
 
       source.current = sse;
       source.current = sse;