Skip to content
Merged
Prev Previous commit
Next Next commit
fix(logs): fetch next page when deep linked log is beyond initial page
  • Loading branch information
waleedlatif1 committed Mar 31, 2026
commit 5c5a4d8a9b25bfeb410a9e08b62f0169b9ca53dc
2 changes: 2 additions & 0 deletions apps/sim/app/workspace/[workspaceId]/logs/logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ export default function Logs() {
dispatch({ type: 'TOGGLE_LOG', logId: found.id })
} else if (!logsQuery.hasNextPage) {
pendingExecutionIdRef.current = null
Comment thread
waleedlatif1 marked this conversation as resolved.
} else if (!logsQueryRef.current.isFetching) {
logsQueryRef.current.fetchNextPage()
Comment thread
waleedlatif1 marked this conversation as resolved.
}
}, [sortedLogs, logsQuery.hasNextPage])
Comment thread
waleedlatif1 marked this conversation as resolved.
Outdated
Comment thread
waleedlatif1 marked this conversation as resolved.
Outdated

Expand Down
Loading