Explorar el Código

Ignore expected 404 on topic statistics page

Roman Zabaluev hace 2 años
padre
commit
eae210c5a1
Se han modificado 1 ficheros con 5 adiciones y 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);
+        }
+      },
     }
   );
 }