Saving a category will now cause the UI to refresh the cache of categories

This commit is contained in:
Isaac Abadi
2020-10-24 00:20:39 -04:00
parent 6ea4176d63
commit 1ce85813fb

View File

@@ -88,6 +88,7 @@ export class EditCategoryDialogComponent implements OnInit {
this.postsService.updateCategory(this.category).subscribe(res => {
this.updating = false;
this.original_category = JSON.parse(JSON.stringify(this.category));
this.postsService.reloadCategories();
}, err => {
this.updating = false;
console.error(err);