Skip to content

Commit 65082c1

Browse files
committed
fix(url-state): trim whitespace-only search in integrations filter
1 parent 308b247 commit 65082c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/app/workspace/[workspaceId]/integrations/integrations.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ export function Integrations() {
146146
// so it reads the instant value too.
147147
const setSearchTerm = useCallback(
148148
(value: string) => {
149-
const next = value.length > 0 ? value : null
149+
const trimmed = value.trim()
150+
const next = trimmed.length > 0 ? trimmed : null
150151
setIntegrationFilters(
151152
{ search: next },
152153
next === null ? undefined : { limitUrlUpdates: debounce(SEARCH_DEBOUNCE_MS) }

0 commit comments

Comments
 (0)