Skip to content

Commit fd5695e

Browse files
committed
Fix lint
1 parent 8bc1092 commit fd5695e

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/hooks/use-checkpoint-management.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,14 @@ export function useCheckpointManagement(
107107
setIsReverting(false)
108108
}
109109
}
110-
}, [messageCheckpoints, revertToCheckpoint, message.id, messages, currentChat, onRevertModeChange])
110+
}, [
111+
messageCheckpoints,
112+
revertToCheckpoint,
113+
message.id,
114+
messages,
115+
currentChat,
116+
onRevertModeChange,
117+
])
111118

112119
/**
113120
* Cancels checkpoint revert

apps/sim/lib/workflows/sanitization/json-sanitizer.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,14 @@ function convertConditionHandleToSemantic(
307307
if (condition.id === conditionId) {
308308
if (title === 'if') {
309309
return `condition-${blockId}-if`
310-
} else if (title === 'else if') {
310+
}
311+
if (title === 'else if') {
311312
elseIfCount++
312313
return elseIfCount === 1
313314
? `condition-${blockId}-else-if`
314315
: `condition-${blockId}-else-if-${elseIfCount}`
315-
} else if (title === 'else') {
316+
}
317+
if (title === 'else') {
316318
return `condition-${blockId}-else`
317319
}
318320
}
@@ -329,11 +331,7 @@ function convertConditionHandleToSemantic(
329331
/**
330332
* Convert internal router handle (router-{uuid}) to semantic format (router-{blockId}-route-N)
331333
*/
332-
function convertRouterHandleToSemantic(
333-
handle: string,
334-
blockId: string,
335-
block: BlockState
336-
): string {
334+
function convertRouterHandleToSemantic(handle: string, blockId: string, block: BlockState): string {
337335
if (!handle.startsWith('router-')) {
338336
return handle
339337
}

0 commit comments

Comments
 (0)