Skip to content

Commit

Permalink
fix: missing props into cohort type and into debounce.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdi-BOUYAHIA committed Mar 28, 2023
1 parent 21b7dd4 commit ff51dcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export type Cohort = {
request_job_duration?: string
request_query_snapshot?: string
extension?: any[]
exportable?: boolean
}

export type CohortFilters = {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/debounce.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState, useEffect } from 'react'

export const useDebounce = (delay: number, value: string) => {
export const useDebounce = (delay: number, value?: string) => {
const [debouncedValue, setDebouncedValue] = useState(value)

useEffect(() => {
Expand Down

0 comments on commit ff51dcb

Please sign in to comment.