Explorar o código

Ignore expected 404 on topic statistics page

Roman Zabaluev %!s(int64=2) %!d(string=hai) anos
pai
achega
eae210c5a1
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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,
       retry: false,
       suspense: false,
+      onError: (error: Response) => {
+        if (error.status !== 404) {
+          showServerError(error as Response);
+        }
+      },
     }
   );
 }