Skip to content

Commit

Permalink
fix(tasks): change type definition for timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Apr 24, 2024
1 parent 17e85af commit 064fa8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function FormCreate(props: ObjectInputProps) {

useEffect(() => {
// If after 10 seconds the task is still in the "creating" state, show an error and reset the creating state.
let timeoutId: NodeJS.Timeout | null = null
let timeoutId: ReturnType<typeof setTimeout> | null = null
if (creating) {
timeoutId = setTimeout(() => {
setCreating(false)
Expand Down

0 comments on commit 064fa8c

Please sign in to comment.