Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(frontend): disable audit log "Load more" during refresh (#19811)
Danny Xu66891f44831c
diff --git a/frontend/src/react/pages/settings/AuditLogPage.tsx b/frontend/src/react/pages/settings/AuditLogPage.tsxindex 30197e5ea1..e932cc1ed0 100644--- a/frontend/src/react/pages/settings/AuditLogPage.tsx+++ b/frontend/src/react/pages/settings/AuditLogPage.tsx@@ -742,8 +742,9 @@ export function AuditLogPage() {}, [fetchAuditLogs]);const loadMore = useCallback(() => {- if (nextPageTokenRef.current && !isFetchingMore) fetchAuditLogs(false);- }, [isFetchingMore, fetchAuditLogs]);+ if (nextPageTokenRef.current && !isFetchingMore && !loading)+ fetchAuditLogs(false);+ }, [isFetchingMore, loading, fetchAuditLogs]);// Exportconst [exporting, setExporting] = useState(false);@@ -978,11 +979,13 @@ export function AuditLogPage() {<Buttonvariant="ghost"size="sm"- disabled={isFetchingMore}+ disabled={isFetchingMore || loading}onClick={loadMore}><span className="text-sm text-control-light">- {isFetchingMore ? t("common.loading") : t("common.load-more")}+ {isFetchingMore || loading+ ? t("common.loading")+ : t("common.load-more")}</span></Button>)}