Skip to content

Commit

Permalink
Merge pull request #542 from GihanAyesh/main
Browse files Browse the repository at this point in the history
Fix for refresh issue in revisions
  • Loading branch information
npamudika authored Feb 16, 2024
2 parents 532064f + d3beab7 commit 1f6d30e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1803,8 +1803,11 @@ export default function Environments() {
}
// allEnvDeployments represents all deployments of the API with mapping
// environment -> {revision deployed to env, vhost deployed to env with revision}
const allEnvDeployments = Utils.getAllEnvironmentDeployments(settings.environment, allEnvRevision);
const allEnvRevisionMapping = Utils.getAllEnvironmentRevisions(settings.environment, allEnvRevision);
const allEnvDeployments = allEnvRevision ?
Utils.getAllEnvironmentDeployments(settings.environment, allEnvRevision) : null;
const allEnvRevisionMapping = allEnvRevision ?
Utils.getAllEnvironmentRevisions(settings.environment, allEnvRevision) : null;


return (
<>
Expand Down

0 comments on commit 1f6d30e

Please sign in to comment.