Skip to content

Commit b6cd0fe

Browse files
committed
chore(logs): remove dev mock logs
1 parent 28f1d10 commit b6cd0fe

2 files changed

Lines changed: 1 addition & 40 deletions

File tree

apps/sim/app/workspace/[workspaceId]/logs/__dev__/mock-logs.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import {
4444
ResourceOptionsBar,
4545
ResourceTable,
4646
} from '@/app/workspace/[workspaceId]/components'
47-
import { DEV_MOCK_LOGS } from '@/app/workspace/[workspaceId]/logs/__dev__/mock-logs'
4847
import { useSearchState } from '@/app/workspace/[workspaceId]/logs/hooks/use-search-state'
4948
import type { Suggestion } from '@/app/workspace/[workspaceId]/logs/types'
5049
import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/providers/workspace-permissions-provider'
@@ -359,11 +358,7 @@ export default function Logs() {
359358
})
360359

361360
const logs = useMemo(() => {
362-
const realLogs = logsQuery.data?.pages?.flatMap((page) => page.logs) ?? []
363-
if (process.env.NODE_ENV === 'development') {
364-
return [...DEV_MOCK_LOGS, ...realLogs]
365-
}
366-
return realLogs
361+
return logsQuery.data?.pages?.flatMap((page) => page.logs) ?? []
367362
}, [logsQuery.data?.pages])
368363

369364
const sortedLogs = useMemo(() => {

0 commit comments

Comments
 (0)