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 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,