Skip to content
Snippets Groups Projects

templates/homepage: Fix counters display when storage is empty

This is a simple fix for the counters display in the webapp homepage.

When the storage is empty (for instance after booting the docker env), the /api/1/stat/counters endpoint returns an empty dict.

So handle that corner case to avoid a JavaScript error when homepage is loading.


Migrated from D2913 (view on Phabricator)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading