Browse Source

FE: Ignore expected 404 on topic statistics page (#3964)

Roman Zabaluev 2 years ago
parent
commit
b9bbb1a823
1 changed files with 5 additions and 0 deletions
  1. 5 0
      kafka-ui-react-app/src/lib/hooks/api/topics.ts

+ 5 - 0
kafka-ui-react-app/src/lib/hooks/api/topics.ts

@@ -304,6 +304,11 @@ export function useTopicAnalysis(
       useErrorBoundary: true,
       useErrorBoundary: true,
       retry: false,
       retry: false,
       suspense: false,
       suspense: false,
+      onError: (error: Response) => {
+        if (error.status !== 404) {
+          showServerError(error as Response);
+        }
+      },
     }
     }
   );
   );
 }
 }