Skip to content

Commit 3e2f854

Browse files
committed
fix(landing): type the capture harness log filter seed as LogFilters
qc.setQueryData(logKeys.list(...)) requires LogFilters, but the inline seed object had no annotation and timeRange inferred as string, which TypeScript widened past the TimeRange literal union. Failed prod build type-check. Also swap the stray `sandbox` prop back to `embedded` to match Workflow's actual prop name.
1 parent a4f43a9 commit 3e2f854

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • apps/sim/app/landing-preview/readme-tour-capture/[workspaceId]

apps/sim/app/landing-preview/readme-tour-capture/[workspaceId]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { SocketProvider } from '@/app/workspace/providers/socket-provider'
1919
import { deploymentKeys } from '@/hooks/queries/deployments'
2020
import { connectorKeys } from '@/hooks/queries/kb/connectors'
2121
import { knowledgeKeys } from '@/hooks/queries/kb/knowledge'
22-
import { logKeys } from '@/hooks/queries/logs'
22+
import { type LogFilters, logKeys } from '@/hooks/queries/logs'
2323
import { mothershipChatKeys } from '@/hooks/queries/mothership-chats'
2424
import { sessionKeys } from '@/hooks/queries/session'
2525
import { workspaceCredentialKeys } from '@/hooks/queries/utils/credential-keys'
@@ -373,7 +373,7 @@ function seed(qc: QueryClient) {
373373
qc.setQueryData(workspaceFileFolderKeys.list(WS_ID, 'active'), [])
374374

375375
// Logs
376-
const logFilters = {
376+
const logFilters: LogFilters = {
377377
timeRange: 'All time',
378378
startDate: undefined,
379379
endDate: undefined,
@@ -632,7 +632,7 @@ export default function ReadmeTourCapturePage({ searchParams }: CapturePageProps
632632
<SandboxWorkspacePermissionsProvider>
633633
<WorkspaceChrome>
634634
{view === 'workflow' ? (
635-
<Workflow workspaceId={WS_ID} workflowId={WF_ID} sandbox />
635+
<Workflow workspaceId={WS_ID} workflowId={WF_ID} embedded />
636636
) : view === 'integrations' ? (
637637
<Suspense fallback={null}>
638638
<Integrations />

0 commit comments

Comments
 (0)