feat(web): api client for step import/export/inline/defaults

This commit is contained in:
2026-07-21 10:28:41 +01:00
parent 15c9da1b01
commit b543cd1b3d
2 changed files with 29 additions and 2 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ export default function WorkflowBuilder() {
return <div className="p-8 text-text-secondary">Loading</div>;
}
const libById = (sid: string) => library?.find((l) => l.step_id === sid);
const libById = (sid?: string) => (sid ? library?.find((l) => l.step_id === sid) : undefined);
const sortedSteps = [...wf.steps].sort((a, b) => a.order - b.order);
const selectedRef = selected !== null ? sortedSteps[selected] : null;