mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed frontend crashing when database is empty
This commit is contained in:
@ -33,7 +33,7 @@ App.Presenters.HomePresenter = function(
|
||||
templates.postContent = postContentTemplate;
|
||||
|
||||
globals = globalsResponse.json;
|
||||
post = featuredPostResponse.json;
|
||||
post = featuredPostResponse.json.id ? featuredPostResponse.json : null;
|
||||
render();
|
||||
loaded();
|
||||
|
||||
|
Reference in New Issue
Block a user