Skip to content

Commit 5ffd047

Browse files
committed
fix(import): preserve workflow colors during import
1 parent 5b0c215 commit 5ffd047

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

apps/sim/app/workspace/[workspaceId]/w/hooks/use-import-workflow.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,10 @@ export function useImportWorkflow({ workspaceId }: UseImportWorkflowProps) {
6262
workspaceId,
6363
folderId: folderId || undefined,
6464
sortOrder,
65+
color: workflowColor,
6566
})
6667
const newWorkflowId = result.id
6768

68-
if (workflowColor !== '#3972F6') {
69-
await fetch(`/api/workflows/${newWorkflowId}`, {
70-
method: 'PATCH',
71-
headers: { 'Content-Type': 'application/json' },
72-
body: JSON.stringify({ color: workflowColor }),
73-
})
74-
}
75-
7669
await fetch(`/api/workflows/${newWorkflowId}/state`, {
7770
method: 'PUT',
7871
headers: { 'Content-Type': 'application/json' },

0 commit comments

Comments
 (0)