Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
fix(api-tokens): clear the table filter when opening the create row
Sergey Kozyrenko44b5fef6dcd6
diff --git a/frontend/src/pages/settings/settings-api-tokens.tsx b/frontend/src/pages/settings/settings-api-tokens.tsxindex 7c984b4f..17cab18e 100644--- a/frontend/src/pages/settings/settings-api-tokens.tsx+++ b/frontend/src/pages/settings/settings-api-tokens.tsx@@ -371,7 +371,10 @@ function SettingsAPITokens() {const handleCreateNew = useCallback(() => {setCreatingToken(true);createForm.reset(CREATE_TOKEN_DEFAULTS);- }, [createForm]);+ // The create row is prepended at data index 0, so an active filter or a non-first+ // page would hide it. Clearing the filter also resets pageIndex to 0.+ setFilter('');+ }, [createForm, setFilter]);const handleCancelCreate = useCallback(() => {setCreatingToken(false);