Skip to content

Commit

Permalink
Simplifying meta controller constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Sik committed Sep 17, 2015
1 parent 9811311 commit f94689e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/src/app/admin/articles/article/meta/meta.ts
Expand Up @@ -13,12 +13,8 @@ namespace app.admin.articles.article.meta {
private notificationService:common.services.notification.NotificationService,
private usersPaginator:common.services.pagination.Paginator
) {
if(_.isEmpty(article._author)) { // New article
this.authors = [];
}
else {
this.authors = [article._author];
}
// Initialize the authors array which is used as a model for author contact chip input.
this.authors = [article._author];
}

/**
Expand Down

0 comments on commit f94689e

Please sign in to comment.