From e4771c0cb8ca52121631cffde9f31375fbb55a66 Mon Sep 17 00:00:00 2001 From: Krithika N Date: Mon, 24 Feb 2025 08:44:10 +0530 Subject: [PATCH 1/2] fix: removing file read operations to avoid state change --- .../edit-user-stories.component.ts | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/ui/src/app/pages/edit-user-stories/edit-user-stories.component.ts b/ui/src/app/pages/edit-user-stories/edit-user-stories.component.ts index 52780ef..59ae6b8 100644 --- a/ui/src/app/pages/edit-user-stories/edit-user-stories.component.ts +++ b/ui/src/app/pages/edit-user-stories/edit-user-stories.component.ts @@ -195,14 +195,12 @@ export class EditUserStoriesComponent implements OnDestroy { }), ); this.allowFreeRedirection = true; - this.store.dispatch(new ReadFile(`${this.folderName}/${this.fileName}`)); - this.selectedFileContent$.subscribe((res: any) => { - let updatedDescription = findUserStory(res, this.data.id).description - this.userStoryForm.patchValue({ - description: updatedDescription - }); - this.description = updatedDescription; + this.userStoryForm.patchValue({ + name: featureName, + description: featureDescription }); + this.name = featureName!; + this.description = featureDescription; this.toasterService.showSuccess( TOASTER_MESSAGES.ENTITY.UPDATE.SUCCESS( this.entityType, @@ -233,14 +231,6 @@ export class EditUserStoriesComponent implements OnDestroy { }), ); this.allowFreeRedirection = true; - this.store.dispatch(new ReadFile(`${this.folderName}/${this.fileName}`)); - this.selectedFileContent$.subscribe((res: any) => { - let updatedDescription = findUserStory(res, this.data.id).description - this.userStoryForm.patchValue({ - description: updatedDescription - }); - this.description = updatedDescription; - }); this.toasterService.showSuccess( TOASTER_MESSAGES.ENTITY.UPDATE.SUCCESS( this.entityType, From 1a7c2d74c1a62bf9bdd67d11fff1c699ae462db6 Mon Sep 17 00:00:00 2001 From: Krithika N Date: Mon, 24 Feb 2025 19:45:42 +0530 Subject: [PATCH 2/2] chore: added changeset --- .changeset/eleven-dragons-sink.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/eleven-dragons-sink.md diff --git a/.changeset/eleven-dragons-sink.md b/.changeset/eleven-dragons-sink.md new file mode 100644 index 0000000..a37bbc3 --- /dev/null +++ b/.changeset/eleven-dragons-sink.md @@ -0,0 +1,5 @@ +--- +"specif-ai": patch +--- + +fix for task chat to stay in same page