Skip to content

Commit

Permalink
Fix display of domain for external overridden modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Mosca committed Jul 1, 2023
1 parent 4e4b1e6 commit e93d8ff
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/ui/list/list.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ export default class List extends Component {
) {
pendingRefreshDefaultModules.push(mod);
} else {
externalOverrideModules.push(mod);
externalOverrideModules.push({
...mod,
overrideUrl: this.state.currentPageMap.imports[moduleName],
});
}
});

Expand Down Expand Up @@ -149,11 +152,8 @@ export default class List extends Component {
defaultModules.sort(sorter);
nextOverriddenModules.sort(sorter);

const {
brokenMaps,
workingCurrentPageMaps,
workingNextPageMaps,
} = getExternalMaps();
const { brokenMaps, workingCurrentPageMaps, workingNextPageMaps } =
getExternalMaps();

return (
<div className="imo-list-container">
Expand Down Expand Up @@ -466,7 +466,8 @@ function toURL(urlStr) {

function getExternalMaps() {
const allExternalMaps = window.importMapOverrides.getExternalOverrides();
const allCurrentPageMaps = window.importMapOverrides.getCurrentPageExternalOverrides();
const allCurrentPageMaps =
window.importMapOverrides.getCurrentPageExternalOverrides();
const brokenMaps = [],
workingCurrentPageMaps = [],
workingNextPageMaps = [];
Expand Down

0 comments on commit e93d8ff

Please sign in to comment.