We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b0c215 commit 5ffd047Copy full SHA for 5ffd047
apps/sim/app/workspace/[workspaceId]/w/hooks/use-import-workflow.ts
@@ -62,17 +62,10 @@ export function useImportWorkflow({ workspaceId }: UseImportWorkflowProps) {
62
workspaceId,
63
folderId: folderId || undefined,
64
sortOrder,
65
+ color: workflowColor,
66
})
67
const newWorkflowId = result.id
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
-
76
await fetch(`/api/workflows/${newWorkflowId}/state`, {
77
method: 'PUT',
78
headers: { 'Content-Type': 'application/json' },
0 commit comments