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

Commit

Permalink
fix blank detector detail page (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylwu-amzn authored May 8, 2020
1 parent f28dc48 commit 253da70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/pages/createDetector/hooks/useFetchDetectorInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export const useFetchDetectorInfo = (
const selectedIndices = get(detector, 'indices.0', '');
useEffect(() => {
const fetchDetector = async () => {
if (!detector && !isDetectorRequesting) {
if (!detector) {
await dispatch(getDetector(detectorId));
}
if (selectedIndices && !isIndicesRequesting) {
if (selectedIndices) {
await dispatch(getMappings(selectedIndices));
}
};
Expand Down

0 comments on commit 253da70

Please sign in to comment.