Fix bug where post text input gets deleted too early

master
Max 5 years ago
parent 2b70675401
commit 37e35d051c

@ -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;

Loading…
Cancel
Save