-
Notifications
You must be signed in to change notification settings - Fork 614
[BUG][UI]: initializeSearchInputs() called recurrently on table views #2121
Description
🐞 Bug Summary
On tabs with tables (e.g.: MCP Servers), the initializeSearchInputs() function gets called every few seconds.
🧩 Affected Component
Select the area of the project impacted:
-
mcpgateway- API -
mcpgateway- UI (admin panel) -
mcpgateway.wrapper- stdio wrapper - Federation or Transports
- CLI, Makefiles, or shell scripts
- Container setup (Docker/Podman/Compose)
- Other (explain below)
🔁 Steps to Reproduce
- Access the Admin UI
- Click a tab that displays a table (MCP Servers, Virtual Servers, Tools...)
- Monitor the logs
🤔 Expected Behavior
The function initializeSearchInputs() should be called once when each tab is loaded.
📓 Logs / Error Output
🔍 Initializing search inputs...
✅ Virtual Servers search initialized
✅ Found MCP Servers search input
✅ MCP Servers search events attached
✅ Tools search initialized
✅ Resources search initialized
✅ Prompts search initialized
✅ A2A Agents search initialized
🔍 Initializing search inputs...
✅ Virtual Servers search initialized
✅ Found MCP Servers search input
✅ MCP Servers search events attached
✅ Tools search initialized
✅ Resources search initialized
✅ Prompts search initialized
✅ A2A Agents search initialized
🔍 Initializing search inputs...
✅ Virtual Servers search initialized
✅ Found MCP Servers search input
✅ MCP Servers search events attached
✅ Tools search initialized
✅ Resources search initialized
✅ Prompts search initialized
✅ A2A Agents search initialized
🔍 Initializing search inputs...
...