Skip to content

Commit f888941

Browse files
committed
chore: fill to current time
1 parent f102155 commit f888941

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

studio/hooks/analytics/useLogsPreview.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ function useLogsPreview(
189189
'timestamp',
190190
'count',
191191
0,
192-
params.iso_timestamp_start,
193-
params.iso_timestamp_end
192+
params.iso_timestamp_start ,
193+
// default to current time if not set
194+
params.iso_timestamp_end || new Date().toISOString()
194195
)
195196

196197
return [

0 commit comments

Comments
 (0)