Skip to content

Commit 8858f57

Browse files
committed
fix(analytics): correct format field logic and add missing useCallback deps
1 parent c84e862 commit 8858f57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/sim/app/workspace/[workspaceId]/home/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export function Home({ chatId }: HomeProps = {}) {
240240

241241
sendMessage(trimmed || 'Analyze the attached file(s).', fileAttachments, contexts)
242242
},
243-
[sendMessage]
243+
[sendMessage, workspaceId, chatId]
244244
)
245245

246246
useEffect(() => {

apps/sim/app/workspace/[workspaceId]/w/hooks/use-import-workflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export function useImportWorkflow({ workspaceId }: UseImportWorkflowProps) {
212212
captureEvent(posthogRef.current, 'workflow_imported', {
213213
workspace_id: workspaceId,
214214
workflow_count: importedWorkflowIds.length,
215-
format: hasZip ? 'zip' : 'json',
215+
format: hasZip && fileArray.length === 1 ? 'zip' : 'json',
216216
})
217217
router.push(
218218
`/workspace/${workspaceId}/w/${importedWorkflowIds[importedWorkflowIds.length - 1]}`

0 commit comments

Comments
 (0)