Fixed stack trace in home when no post is featured
This commit is contained in:
parent
b4043313d4
commit
d4f245e414
1 changed files with 5 additions and 3 deletions
|
@ -38,9 +38,11 @@ App.Presenters.HomePresenter = function(
|
||||||
render();
|
render();
|
||||||
loaded();
|
loaded();
|
||||||
|
|
||||||
presenterManager.initPresenters([
|
if ($el.find('#post-content-target').length > 0) {
|
||||||
[postContentPresenter, {post: post, $target: $el.find('#post-content-target')}]],
|
presenterManager.initPresenters([
|
||||||
function() {});
|
[postContentPresenter, {post: post, $target: $el.find('#post-content-target')}]],
|
||||||
|
function() {});
|
||||||
|
}
|
||||||
|
|
||||||
}).fail(function(response) {
|
}).fail(function(response) {
|
||||||
messagePresenter.showError($el, response.json && response.json.error || response);
|
messagePresenter.showError($el, response.json && response.json.error || response);
|
||||||
|
|
Loading…
Reference in a new issue