Skip to content

Commit

Permalink
fix: endpoint with query params
Browse files Browse the repository at this point in the history
  • Loading branch information
duynguyen committed Apr 23, 2024
1 parent 0a38e37 commit de92de5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aem-uex-1/web-src/src/components/OpenassetpickerModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export default function () {
};

const filterRepos = (repos) => {
const repoName = endpoint.replace("https://", "").replace(/\/$/, "");
const repoUrl = new URL(endpoint);
const repoName = repoUrl.hostname;
return repos.filter((repo) => {
return (
repo._embedded["http://ns.adobe.com/adobecloud/rel/repository"][
Expand Down

0 comments on commit de92de5

Please sign in to comment.