fix(account): Fix: updated cleanupViews method to correctly iterate over children.

This commit is contained in:
2024-10-07 00:08:52 +02:00
parent c547105ab6
commit 3cb79c8dbe
4 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@idp.global/idp.global',
version: '1.3.0',
version: '1.3.1',
description: 'An identity provider software managing user authentications, registrations, and sessions.'
}
+1 -1
View File
@@ -102,7 +102,7 @@ export class IdpAccountContent extends DeesElement {
const viewcontainer: HTMLDivElement = this.shadowRoot.querySelector('.viewcontainer');
const cleanupViews = async () => {
for (const child of viewcontainer.children) {
for (const child of Array.from(viewcontainer.children)) {
viewcontainer.removeChild(child);
}
};