fix table component not sorting structs correctly
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8f288afeb9
commit
6992528f2f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user