Skip to content

Commit cc14b09

Browse files
committed
fix(docs): show '-' for blank inspector branch values, matching the canvas
inspectorFieldsFor passed raw branch.value into the lightbox branch fields, so an unset else route read blank in the inspector while DocsBlockNode (and the editor's getDisplayValue) render '-' on the canvas. Normalize the same way; drop the now-redundant placeholder.
1 parent 1090907 commit cc14b09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/docs/components/workflow-preview/workflow-preview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ function inspectorFieldsFor(block: PreviewBlock) {
150150
const branchFields = (block.branches ?? []).map((branch) => ({
151151
label: branch.label,
152152
kind: 'code' as const,
153-
value: branch.value,
154-
placeholder: '—',
153+
// Match the canvas + the editor's getDisplayValue: a blank value reads as '-'.
154+
value: branch.value || '-',
155155
}))
156156
return [...rowFields, ...branchFields]
157157
}

0 commit comments

Comments
 (0)