Skip to content

Commit d75cc1e

Browse files
authored
v0.3.30: duplication, control bar fixes
2 parents 60a9a25 + 5a8a703 commit d75cc1e

File tree

2 files changed

+7
-13
lines changed
  • apps/sim

2 files changed

+7
-13
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/control-bar.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import {
3232
TooltipTrigger,
3333
} from '@/components/ui'
3434
import { useSession } from '@/lib/auth-client'
35-
import { isDev } from '@/lib/environment'
3635
import { createLogger } from '@/lib/logs/console/logger'
3736
import { cn } from '@/lib/utils'
3837
import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/providers/workspace-permissions-provider'
@@ -414,7 +413,7 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
414413
<Tooltip>
415414
<TooltipTrigger asChild>
416415
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-[11px] border bg-card text-card-foreground opacity-50 shadow-xs transition-colors'>
417-
<Trash2 className='h-5 w-5' />
416+
<Trash2 className='h-4 w-4' />
418417
</div>
419418
</TooltipTrigger>
420419
<TooltipContent>{getTooltipText()}</TooltipContent>
@@ -499,7 +498,7 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
499498
<TooltipTrigger asChild>
500499
{isDisabled ? (
501500
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-[11px] border bg-card text-card-foreground opacity-50 shadow-xs transition-colors'>
502-
<Copy className='h-5 w-5' />
501+
<Copy className='h-4 w-4' />
503502
</div>
504503
) : (
505504
<Button
@@ -564,9 +563,9 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
564563
{isDisabled ? (
565564
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-[11px] border bg-card text-card-foreground opacity-50 shadow-xs transition-colors'>
566565
{isAutoLayouting ? (
567-
<RefreshCw className='h-5 w-5 animate-spin' />
566+
<RefreshCw className='h-4 w-4 animate-spin' />
568567
) : (
569-
<Layers className='h-5 w-5' />
568+
<Layers className='h-4 w-4' />
570569
)}
571570
</div>
572571
) : (
@@ -722,7 +721,7 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
722721
<TooltipTrigger asChild>
723722
{isDisabled ? (
724723
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-[11px] border bg-card text-card-foreground opacity-50 shadow-xs transition-colors'>
725-
<Store className='h-5 w-5' />
724+
<Store className='h-4 w-4' />
726725
</div>
727726
) : (
728727
<Button
@@ -776,7 +775,7 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
776775
isDebugging && 'text-amber-500'
777776
)}
778777
>
779-
<Bug className='h-5 w-5' />
778+
<Bug className='h-4 w-4' />
780779
</div>
781780
) : (
782781
<Button variant='outline' onClick={handleDebugToggle} className={buttonClass}>
@@ -1003,8 +1002,7 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
10031002
{renderToggleButton()}
10041003
{isExpanded && <ExportControls />}
10051004
{isExpanded && renderAutoLayoutButton()}
1006-
{!isDev && isExpanded && renderDuplicateButton()}
1007-
{isDev && renderDuplicateButton()}
1005+
{renderDuplicateButton()}
10081006
{renderDeleteButton()}
10091007
{!isDebugging && renderDebugModeToggle()}
10101008
{isExpanded && renderPublishButton()}

apps/sim/stores/workflows/registry/store.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,10 +1212,6 @@ export const useWorkflowRegistry = create<WorkflowRegistry>()(
12121212
}))
12131213
}
12141214

1215-
// Set as active workflow and update store
1216-
set({ activeWorkflowId: id })
1217-
useWorkflowStore.setState(newState)
1218-
12191215
// Workflow has already been persisted to the database via the duplication endpoint
12201216

12211217
logger.info(

0 commit comments

Comments
 (0)