fix error in mobile instance view
This commit is contained in:
parent
287c7b5624
commit
cc95d19ee8
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue