Skip to content

Commit

Permalink
Removing file read operations to avoid state change (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
krithika7402 authored Feb 24, 2025
1 parent 343bc7a commit 9a2a544
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/eleven-dragons-sink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"specif-ai": patch
---

fix for task chat to stay in same page
20 changes: 5 additions & 15 deletions ui/src/app/pages/edit-user-stories/edit-user-stories.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9a2a544

Please sign in to comment.