Skip to content

Commit

Permalink
Update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Oct 25, 2023
1 parent 61c0bea commit a2b9cc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions foursight_core/react/ui/static/js/main.js

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions react/src/pages/PortalRedeployPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ const useFetchBuildDigest = (build, args = {}) => {
return useFetch(url, args);
}

const useFetchPortalHealth = () => {
return useFetch("/portal_health");
const useFetchPortalHealth = (env) => {
const url = env ? `//${env}/portal_health` : null;
return useFetch(url);
}

const PortalRedeployPage = (props) => {
Expand Down Expand Up @@ -471,7 +472,7 @@ const DetailBox = (props) => {
const image = useFetchImageInfo(services.data?.image?.arn);
const build = useFetchBuildInfo(services.data?.image?.arn, previousBuilds);
const header = useHeader();
const health = useFetchPortalHealth();
const health = useFetchPortalHealth(services.data?.env?.full_name);

useEffect(() => {
if (!build.loading && !status.loading) {
Expand Down

0 comments on commit a2b9cc7

Please sign in to comment.