fix table component not sorting structs correctly
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
shibao 2023-03-18 01:35:20 -04:00 committed by Weblate
parent 8f288afeb9
commit 6992528f2f

View File

@ -74,8 +74,8 @@ defmodule MemexWeb.Components.TableComponent do
last_sort_key: initial_key, last_sort_key: initial_key,
sort_mode: initial_sort_mode sort_mode: initial_sort_mode
) )
|> assign_new(:row_class, fn -> "bg-primary-900" end) |> assign_new(:row_class, fn -> "bg-white" end)
|> assign_new(:alternate_row_class, fn -> "bg-primary-900" end) |> assign_new(:alternate_row_class, fn -> "bg-gray-200" end)
{:ok, socket} {:ok, socket}
end end