mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: clear search when adding a step from the tool picker
When a tool was selected via search, the search text persisted after the picker closed. Reopening the picker showed a filtered list instead of all tools, making it look like clicking tools without searching didn't work.
This commit is contained in:
@@ -107,6 +107,7 @@ export function PipelineBuilder({
|
|||||||
};
|
};
|
||||||
onStepsChange([...steps, step]);
|
onStepsChange([...steps, step]);
|
||||||
setShowToolPicker(false);
|
setShowToolPicker(false);
|
||||||
|
setToolSearch("");
|
||||||
setExpandedStep(step.id);
|
setExpandedStep(step.id);
|
||||||
},
|
},
|
||||||
[steps, onStepsChange],
|
[steps, onStepsChange],
|
||||||
|
|||||||
Reference in New Issue
Block a user