diff --git a/src/app/components/feed/feed.component.ts b/src/app/components/feed/feed.component.ts index 3487ead..abb2992 100644 --- a/src/app/components/feed/feed.component.ts +++ b/src/app/components/feed/feed.component.ts @@ -81,7 +81,6 @@ export class FeedComponent implements OnInit { if (postElement && activityId && this.checked) { this.posting = true; this.feedService.createPostActivity(postElement.value, activityId, this.file).subscribe(() => { - postElement.value = ''; }, (error: IErrorResponse) => { this.errorOccurred = true; this.posting = false; @@ -90,7 +89,6 @@ export class FeedComponent implements OnInit { } else if (postElement) { this.posting = true; this.feedService.createPost(postElement.value, this.file).subscribe((result) => { - postElement.value = ''; }, (error: IErrorResponse) => { console.log(error); this.posting = false;