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

Commit

Permalink
Merge pull request #216 from argoapp-live/dev
Browse files Browse the repository at this point in the history
Patch V2.4.2 - Fix domain latest link update
  • Loading branch information
rekpero authored Jan 21, 2022
2 parents 3947fb8 + 2854b6f commit 8a0e370
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ const DomainItem: React.FC<IDeploymentItemProps> = ({
orgId: selectedOrg?._id,
name: editDomainName !== domain ? editDomainName : undefined,
link:
deployedSite !== link && deployedSite !== "latest"
deployedSite === "latest"
? (sortedDeployments || [{ sitePreview: undefined }])[0]?.sitePreview
: deployedSite !== link
? deployedSite
: undefined,
isLatest,
Expand Down

0 comments on commit 8a0e370

Please sign in to comment.