Skip to content

Commit

Permalink
fix: Timer string updates after updating specific timer. #244
Browse files Browse the repository at this point in the history
  • Loading branch information
LuchoTurtle committed Jan 4, 2023
1 parent 85b5cab commit e3d7996
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/app_web/live/app_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ defmodule AppWeb.AppLive do
timer_changeset_list
) do
{:ok, _list} ->

# Updates item list and broadcast to other users
AppWeb.Endpoint.broadcast(@topic, "update", :update)
{:noreply, assign(socket, editing: nil, editing_timers: [])}

{:error, updated_errored_list} ->
Expand Down

0 comments on commit e3d7996

Please sign in to comment.