Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Get detector upon initial anomaly results page load
Browse files Browse the repository at this point in the history
  • Loading branch information
ohltyler committed Sep 3, 2020
1 parent 03402c9 commit 40214b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/pages/DetectorResults/containers/AnomalyResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ export function AnomalyResults(props: AnomalyResultsProps) {
BREADCRUMBS.DETECTORS,
{ text: detector ? detector.name : '' },
]);
dispatch(getDetector(detectorId));
}, []);

const fetchDetector = async () => {
await dispatch(getDetector(detectorId));
dispatch(getDetector(detectorId));
};

useEffect(() => {
Expand Down

0 comments on commit 40214b1

Please sign in to comment.