From b9bbb1a8235037c9a4810bd4d586fb42408cb67b Mon Sep 17 00:00:00 2001 From: Roman Zabaluev Date: Mon, 26 Jun 2023 17:32:21 +0800 Subject: [PATCH] FE: Ignore expected 404 on topic statistics page (#3964) --- kafka-ui-react-app/src/lib/hooks/api/topics.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kafka-ui-react-app/src/lib/hooks/api/topics.ts b/kafka-ui-react-app/src/lib/hooks/api/topics.ts index a87673368dd..f06b6a87670 100644 --- a/kafka-ui-react-app/src/lib/hooks/api/topics.ts +++ b/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); + } + }, } ); }