fix error in mobile instance view

pull/1/head
Tao Bror Bojlén 2019-08-02 22:49:47 +03:00
rodzic 287c7b5624
commit cc95d19ee8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: C6EC7AAB905F9E6F
2 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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)
]
}
}