Skip to content

Commit f5d0f93

Browse files
committed
Fix live updates not working sometimes
1 parent ccb942d commit f5d0f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/backpex/live_resource/index.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ defmodule Backpex.LiveResource.Index do
328328

329329
defp find_item_by_primary_value(items, primary_value, live_resource) do
330330
Enum.find(items, fn item ->
331-
to_string(LiveResource.primary_value(item, live_resource)) == primary_value
331+
to_string(LiveResource.primary_value(item, live_resource)) == to_string(primary_value)
332332
end)
333333
end
334334

0 commit comments

Comments
 (0)