Skip to content

Commit

Permalink
fix: #8254 invalid url is shown for branches with dash (#8260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Hajdrik authored Oct 21, 2021
1 parent 2c80057 commit e768597
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/amplify-console-hosting/utils/table-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ async function generateTableContentForApp(context, appId) {
.promise();

for (const branch of branches) {
const { branchName } = branch;
const { branchName, displayName } = branch;
const validDisplayName = displayName || branchName;
domainMap[branchName] = [];
domainMap[branchName].push(`https://${branchName}.${appId}.amplifyapp.com`);
domainMap[branchName].push(`https://${validDisplayName}.${appId}.amplifyapp.com`);
}
} while (nextToken != null);

Expand Down

0 comments on commit e768597

Please sign in to comment.