Skip to content

Commit 1072e4a

Browse files
committed
remove random comments
1 parent 78cb382 commit 1072e4a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

apps/sim/hooks/use-collaborative-workflow.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,6 @@ export function useCollaborativeWorkflow() {
10211021
const trimmedName = name.trim()
10221022
const normalizedNewName = normalizeName(trimmedName)
10231023

1024-
// Check for empty name
10251024
if (!normalizedNewName) {
10261025
logger.error('Cannot rename block to empty name')
10271026
useNotificationStore.getState().addNotification({
@@ -1032,7 +1031,6 @@ export function useCollaborativeWorkflow() {
10321031
return { success: false, error: 'Block name cannot be empty' }
10331032
}
10341033

1035-
// Check for duplicate block names before queueing the operation
10361034
const currentBlocks = workflowStore.blocks
10371035
const conflictingBlock = Object.entries(currentBlocks).find(
10381036
([blockId, block]) => blockId !== id && normalizeName(block.name) === normalizedNewName
@@ -1049,7 +1047,6 @@ export function useCollaborativeWorkflow() {
10491047
return { success: false, error: `Block name "${trimmedName}" already exists` }
10501048
}
10511049

1052-
// Name is valid, proceed with the operation
10531050
executeQueuedOperation('update-name', 'block', { id, name: trimmedName }, () => {
10541051
const result = workflowStore.updateBlockName(id, trimmedName)
10551052

0 commit comments

Comments
 (0)