diff --git a/lib/towerops_web/live/device_live/index.ex b/lib/towerops_web/live/device_live/index.ex index c1b09360..7d133254 100644 --- a/lib/towerops_web/live/device_live/index.ex +++ b/lib/towerops_web/live/device_live/index.ex @@ -276,6 +276,12 @@ defmodule ToweropsWeb.DeviceLive.Index do {:noreply, reload_device_stream(socket)} end + # Handled by StatusTitleComponent in layout - ignore to prevent crashes + @impl true + def handle_info({:alert_changed, _org_id}, socket) do + {:noreply, socket} + end + defp tick_interval_ms do if Application.get_env(:towerops, :env) == :test, do: :infinity, else: to_timeout(second: 15) end diff --git a/lib/towerops_web/live/device_live/show.ex b/lib/towerops_web/live/device_live/show.ex index 0f77840b..90785977 100644 --- a/lib/towerops_web/live/device_live/show.ex +++ b/lib/towerops_web/live/device_live/show.ex @@ -244,6 +244,12 @@ defmodule ToweropsWeb.DeviceLive.Show do {:noreply, assign(socket, :show_check_form, false)} end + # Handled by StatusTitleComponent in layout - ignore to prevent crashes + @impl true + def handle_info({:alert_changed, _org_id}, socket) do + {:noreply, socket} + end + # Private functions defp maybe_subscribe_and_schedule_refresh(socket, device_id) do