fix error in mobile instance view

This commit is contained in:
Tao Bror Bojlén 2019-08-02 22:49:47 +03:00
parent 287c7b5624
commit cc95d19ee8
No known key found for this signature in database
GPG Key ID: C6EC7AAB905F9E6F
2 changed files with 5 additions and 4 deletions

View File

@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed some instances being duplicated (due to un-normalized data).
- Fixed mobile instance view erroring for uncrawled instances.
### Security

View File

@ -26,12 +26,12 @@ defmodule BackendWeb.GraphView do
ranges: %{
# Make sure that these keys match what's in the "node.json" render function.
statusesPerDay: [
Enum.min(statuses_per_day),
Enum.max(statuses_per_day)
Enum.min(statuses_per_day, fn -> nil end),
Enum.max(statuses_per_day, fn -> nil end)
],
statusesPerUserPerDay: [
Enum.min(statuses_per_user_per_day),
Enum.max(statuses_per_user_per_day)
Enum.min(statuses_per_user_per_day, fn -> nil end),
Enum.max(statuses_per_user_per_day, fn -> nil end)
]
}
}