diff --git a/src/types.ts b/src/types.ts index de6111187..7c3f72e25 100644 --- a/src/types.ts +++ b/src/types.ts @@ -115,6 +115,7 @@ export type Cohort = { request_job_duration?: string request_query_snapshot?: string extension?: any[] + exportable?: boolean } export type CohortFilters = { diff --git a/src/utils/debounce.ts b/src/utils/debounce.ts index 96589899b..21bcbda85 100644 --- a/src/utils/debounce.ts +++ b/src/utils/debounce.ts @@ -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(() => {