Skip to content

[BUG][UI]: initializeSearchInputs() called recurrently on table views #2121

@gcgoncalves

Description

@gcgoncalves

🐞 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

  1. Access the Admin UI
  2. Click a tab that displays a table (MCP Servers, Virtual Servers, Tools...)
  3. 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...
...

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfrontendFrontend development (HTML, CSS, JavaScript)uiUser Interface

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions