diff --git a/public/pages/ThreatIntel/components/ThreatIntelSourceDetails/ThreatIntelSourceDetails.tsx b/public/pages/ThreatIntel/components/ThreatIntelSourceDetails/ThreatIntelSourceDetails.tsx index 2462d3d2..de21cff7 100644 --- a/public/pages/ThreatIntel/components/ThreatIntelSourceDetails/ThreatIntelSourceDetails.tsx +++ b/public/pages/ThreatIntel/components/ThreatIntelSourceDetails/ThreatIntelSourceDetails.tsx @@ -234,7 +234,10 @@ export const ThreatIntelSourceDetails: React.FC = }} onScheduleChange={onIntervalChange} readonly={isReadOnly || !enabled} - scheduleUnitOptions={[defaultIntervalUnitOptions.DAYS]} + scheduleUnitOptions={[ + defaultIntervalUnitOptions.HOURS, + defaultIntervalUnitOptions.DAYS, + ]} /> {(!isReadOnly || !enabled) && ( diff --git a/public/pages/ThreatIntel/containers/AddThreatIntelSource/AddThreatIntelSource.tsx b/public/pages/ThreatIntel/containers/AddThreatIntelSource/AddThreatIntelSource.tsx index cf72ed7f..90c3ba9f 100644 --- a/public/pages/ThreatIntel/containers/AddThreatIntelSource/AddThreatIntelSource.tsx +++ b/public/pages/ThreatIntel/containers/AddThreatIntelSource/AddThreatIntelSource.tsx @@ -99,7 +99,7 @@ export const AddThreatIntelSource: React.FC = ({ interval: { start_time: Date.now(), period: 1, - unit: 'DAYS', + unit: defaultIntervalUnitOptions.HOURS.value, }, }); const [sourceType, setSourceType] = useState<'S3_CUSTOM' | 'IOC_UPLOAD'>('S3_CUSTOM'); @@ -545,7 +545,10 @@ export const AddThreatIntelSource: React.FC = ({ unit: schedule.interval.unit, }, }} - scheduleUnitOptions={[defaultIntervalUnitOptions.DAYS]} + scheduleUnitOptions={[ + defaultIntervalUnitOptions.HOURS, + defaultIntervalUnitOptions.DAYS, + ]} onScheduleChange={onIntervalChange} />