Skip to content

Commit 645ff02

Browse files
fix(tables): edit enrichment output columns via the plain column editor
Edit column on an enrichment output now opens the normal column-config sidebar (rename / type / unique) instead of the workflow 'Configure output column' panel, which showed workflow-only fields and blocked a simple rename. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a931553 commit 645ff02

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/table-grid.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2581,14 +2581,19 @@ export function TableGrid({
25812581
const handleConfigureColumn = useCallback(
25822582
(columnName: string) => {
25832583
const column = columnsRef.current.find((c) => c.name === columnName)
2584-
if (column?.workflowGroupId) {
2585-
// Workflow-output column header → single-output sub-mode.
2584+
const group = column?.workflowGroupId
2585+
? workflowGroupById.get(column.workflowGroupId)
2586+
: undefined
2587+
// Enrichment output columns behave like plain columns (rename / type /
2588+
// unique) — route them to the normal column editor, not the workflow
2589+
// "Configure output column" panel.
2590+
if (column?.workflowGroupId && group?.type !== 'enrichment') {
25862591
onOpenWorkflowConfig({ mode: 'edit-output', columnName })
25872592
} else {
25882593
onOpenColumnConfig({ mode: 'edit', columnName })
25892594
}
25902595
},
2591-
[onOpenColumnConfig, onOpenWorkflowConfig]
2596+
[onOpenColumnConfig, onOpenWorkflowConfig, workflowGroupById]
25922597
)
25932598

25942599
const handleConfigureWorkflowGroup = useCallback(

0 commit comments

Comments
 (0)