MCPcopy Index your code
hub / github.com/simstudioai/sim / hasActiveFilters

Function hasActiveFilters

apps/sim/lib/logs/filters.ts:20–29  ·  view source on GitHub ↗
(filters: FilterValues)

Source from the content-addressed store, hash-verified

18 * @returns True if any filter is active
19 */
20export function hasActiveFilters(filters: FilterValues): boolean {
21 return (
22 filters.timeRange !== 'All time' ||
23 filters.level !== 'all' ||
24 filters.workflowIds.length > 0 ||
25 filters.folderIds.length > 0 ||
26 filters.triggers.length > 0 ||
27 filters.searchQuery.trim() !== ''
28 )
29}
30
31/**
32 * Shared schema for log filter parameters.

Callers 2

LogsFunction · 0.90
LogsFilterPanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected