fix(account): Fix: updated cleanupViews method to correctly iterate over children.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user