From 37e35d051ca9e200b24a6b81678738b85b4e44b7 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 24 Jan 2020 19:28:40 +0100 Subject: [PATCH] Fix bug where post text input gets deleted too early --- src/app/components/feed/feed.component.ts | 2 -- 1 file changed, 2 deletions(-) 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;