Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: always clear timer when route changed (#8373)
Liu Jib695c32c18b5
diff --git a/frontend/src/App.vue b/frontend/src/App.vueindex d2d3016110..d5ed0516c7 100644--- a/frontend/src/App.vue+++ b/frontend/src/App.vue@@ -61,7 +61,7 @@ const CRITICAL_NOTIFICATION_DURATION = 10000;interface LocalState {notificationList: BBNotificationItem[];prevLoggedIn: boolean;- helpTimer: number | null;+ helpTimer: number | undefined;RouteMapList: RouteMapList | null;}@@ -74,7 +74,7 @@ const router = useRouter();const state = reactive<LocalState>({notificationList: [],prevLoggedIn: authStore.isLoggedIn(),- helpTimer: null,+ helpTimer: undefined,RouteMapList: null,});@@ -135,6 +135,12 @@ watch(const uiStateStore = useUIStateStore();const helpStore = useHelpStore();+ // Clear timer after every route change.+ if (state.helpTimer) {+ clearTimeout(state.helpTimer);+ state.helpTimer = undefined;+ }+// Hide opened help drawer if route changed.helpStore.exitHelp();@@ -143,12 +149,6 @@ watch(state.RouteMapList = await res.json();}- // Clear timer after every route change.- if (state.helpTimer) {- clearTimeout(state.helpTimer);- state.helpTimer = null;- }-const helpId = state.RouteMapList?.find((pair) => pair.routeName === routeName)?.helpName;