Skip to content

Commit

Permalink
better path resolve (keycloak#26239)
Browse files Browse the repository at this point in the history
for keycloak/keycloak-quickstarts#523

Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit authored Jan 19, 2024
1 parent f4a55e4 commit f20de39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/apps/account-ui/src/content/ContentComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ function findComponent(
componentId: string,
): string | undefined {
for (const item of content) {
if ("path" in item && item.path === componentId && "modulePath" in item) {
if (
"path" in item &&
item.path.endsWith(componentId) &&
"modulePath" in item
) {
return item.modulePath;
}
if ("children" in item) {
Expand Down

0 comments on commit f20de39

Please sign in to comment.