Procházet zdrojové kódy

Limit before slots to 5

theenglishway (time) před 4 roky
rodič
revize
0d89cfe760
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/vaccins_web/live/location_component.ex

+ 1 - 1
lib/vaccins_web/live/location_component.ex

@@ -103,7 +103,7 @@ defmodule VaccinsWeb.LocationComponent do
        do:
          assigns
          |> Map.put(:slots_after, after_slots |> Enum.take(5))
-         |> Map.put(:slots_before, before_slots)
+         |> Map.put(:slots_before, before_slots |> Enum.take(5))
          |> Map.put(:last_early_slot_seen, DateTime.utc_now())
 
   defp integrate_availabilities(assigns), do: assigns