Skip to content

Commit 680fa11

Browse files
committed
fix(search-replace): revert !activeMatchId guard that caused immediate re-navigation after deselect
1 parent 5e3ccbe commit 680fa11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/search-replace/workflow-search-replace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ export function WorkflowSearchReplace() {
390390
const replaceIndex = afterReplaceIndexRef.current
391391
afterReplaceIndexRef.current = null
392392

393-
if (queryChanged || justOpened || !activeMatchId) {
393+
if (queryChanged || justOpened) {
394394
handleSelectMatch(hydratedMatches[0].id)
395395
} else if (replaceIndex !== null) {
396396
handleSelectMatch(hydratedMatches[Math.min(replaceIndex, hydratedMatches.length - 1)].id)

0 commit comments

Comments
 (0)