Skip to content

Commit 8e85660

Browse files
waleedlatif1emir-karabeg
authored andcommitted
fix(color-picker): confirm color change before updating workflow color (#2776)
1 parent 76c3e1e commit 8e85660

File tree

1 file changed

+2
-2
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/context-menu

1 file changed

+2
-2
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/workflow-list/components/context-menu/context-menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,11 @@ export function ContextMenu({
347347
title={name}
348348
onClick={(e) => {
349349
e.stopPropagation()
350-
onColorChange(color)
350+
setHexInput(color)
351351
}}
352352
className={cn(
353353
'h-[20px] w-[20px] rounded-[4px]',
354-
currentColor?.toLowerCase() === color.toLowerCase() && 'ring-1 ring-white'
354+
hexInput.toLowerCase() === color.toLowerCase() && 'ring-1 ring-white'
355355
)}
356356
style={{ backgroundColor: color }}
357357
/>

0 commit comments

Comments
 (0)