Skip to content

Commit

Permalink
Merge pull request #491 from rockcarver/pr/482
Browse files Browse the repository at this point in the history
Pr/482
  • Loading branch information
vscheuber authored Jan 22, 2025
2 parents 3223601 + 42790f6 commit 619ae16
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3,004 deletions.
8 changes: 8 additions & 0 deletions src/ops/ConfigOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,14 @@ export async function exportFullConfiguration({
)?.trustedJwtIssuer,
...config.realm[realm],
};
//Clean up realm duplicates
if (
realmConfig[realm].service &&
realmConfig[realm].service['SocialIdentityProviders']
) {
delete realmConfig[realm].service['SocialIdentityProviders']
.nextDescendents;
}
}
state.setRealm(activeRealm);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ops/ServiceOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export async function putFullService({
});

// return fast if no next descendents supplied
if (nextDescendents.length === 0) {
if (!nextDescendents || nextDescendents.length === 0) {
debugMessage({
message: `ServiceOps.putFullService: end (w/o descendents)`,
state,
Expand Down
Loading

0 comments on commit 619ae16

Please sign in to comment.