Skip to content

Commit a907e2a

Browse files
Chigalaericallam
andauthored
chore: updated the type in the eventId argument (#389)
* chore: updated the type in the eventId argument * Create nervous-masks-rest.md --------- Co-authored-by: Eric Allam <[email protected]>
1 parent 403acac commit a907e2a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/nervous-masks-rest.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/react": patch
3+
---
4+
5+
chore: updated the type in the eventId argument

packages/react/src/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function useEventDetails(eventId: string | undefined): UseEventDetailsRes
4242
}
4343

4444
export function useEventRunDetails(
45-
eventId: string,
45+
eventId: string | undefined,
4646
options?: RunDetailOptions
4747
): UseRunDetailsResult {
4848
const event = useEventDetails(eventId);

0 commit comments

Comments
 (0)