Skip to content

Commit 0351f6e

Browse files
chore: address coderabbit nitpicks for workflow routes and css
1 parent f337698 commit 0351f6e

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

apps/server/src/routes/workflows.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ function validateGraph(graph: WorkflowGraph | undefined): graph is WorkflowGraph
1616

1717
async function persistResult(engine: WorkflowEngine, result: WorkflowRunResult) {
1818
try {
19-
// Backward compatibility: fall back to reading the private graph field if the engine
20-
// instance doesn't yet expose getGraph (e.g., cached build).
21-
const engineAny = engine as WorkflowEngine & { getGraph?: () => WorkflowGraph };
22-
const workflow =
23-
typeof engineAny.getGraph === 'function'
24-
? engineAny.getGraph()
25-
: (Reflect.get(engine, 'graph') as WorkflowGraph | undefined);
19+
const workflow = getEngineWorkflow(engine);
2620

2721
if (!workflow) {
2822
throw new Error('Workflow graph not available on engine instance');

apps/web/src/workflow-editor.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ path.connection-line.active {
486486
align-items: center;
487487
justify-content: center;
488488
padding: 0;
489-
font-size: 10px;
489+
font-size: var(--Fonts-Body-Default-xxs);
490490
font-weight: 700;
491491
color: var(--Colors-Primary-Medium);
492492
line-height: 1;

0 commit comments

Comments
 (0)