From 9ab6b4d8dc38b0659cc39196a9aa5c9e1de5d066 Mon Sep 17 00:00:00 2001 From: mashm Date: Fri, 29 Nov 2024 16:49:31 +0530 Subject: [PATCH] submit API is failing due to incorrect payload issue fixed --- .../template/default-form/default-form.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/angular-sdk-components/src/lib/_components/template/default-form/default-form.component.ts b/packages/angular-sdk-components/src/lib/_components/template/default-form/default-form.component.ts index 53808c39..c8013c53 100644 --- a/packages/angular-sdk-components/src/lib/_components/template/default-form/default-form.component.ts +++ b/packages/angular-sdk-components/src/lib/_components/template/default-form/default-form.component.ts @@ -73,4 +73,9 @@ export class DefaultFormComponent implements OnInit { // normalize them this.arChildren$ = ReferenceComponent.normalizePConnArray(kids[0].getPConnect().getChildren()); } + + ngOnDestroy(): void { + // Clean up + PCore.getContextTreeManager().removeContextTreeNode(this.pConn$.getContextName()); + } }