From e93d8ffd9c3c62ff8b7a1f348457b89e69efc9e7 Mon Sep 17 00:00:00 2001 From: Roberto Mosca Date: Sat, 1 Jul 2023 18:50:37 +0200 Subject: [PATCH] Fix display of domain for external overridden modules --- src/ui/list/list.component.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ui/list/list.component.js b/src/ui/list/list.component.js index 8d8b0cd..8c2f2a8 100644 --- a/src/ui/list/list.component.js +++ b/src/ui/list/list.component.js @@ -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], + }); } }); @@ -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 (
@@ -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 = [];