From f3b5b8f95b73d8e2ff443c164879064944a7349f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E5=A6=82?= <77052266+JiangRu1@users.noreply.github.com> Date: Mon, 22 Jan 2024 15:32:52 +0800 Subject: [PATCH] ADM-747: [frontend] feat: handle error (#968) * ADM-747: [frontend] refactor: refactor notification * ADM-747: [frontend] refactor: set default title for notification * ADM-747: [frontend] feat: handle timeout error * ADM-747: [frontend] feat: handle report error * ADM-747: [frontend] refactor: rename reportMetricsError * ADM-747: [frontend] refactor: replace enum with object * ADM-747: [frontend] feat: handle report error * ADM-747: [frontend] feat: handle export error * ADM-747: [frontend] test: add tests for error notifications * ADM-747: [frontend] refactor: refactor report useEffect * ADM-747: [frontend] refactor: refactor TimeoutException * ADM-747: [frontend] refactor: delete useless isServerError * ADM-747: [frontend] test: add e2e tests for date picker * ADM-747: [frontend] fix: fix import --- frontend/src/containers/MetricsStep/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/containers/MetricsStep/index.tsx b/frontend/src/containers/MetricsStep/index.tsx index 53acb31124..d0e3df2665 100644 --- a/frontend/src/containers/MetricsStep/index.tsx +++ b/frontend/src/containers/MetricsStep/index.tsx @@ -61,6 +61,9 @@ const MetricsStep = ({ closeAllNotifications }: useNotificationLayoutEffectInter useLayoutEffect(() => { closeAllNotifications(); + }, []); + + useLayoutEffect(() => { getInfo(); }, []);