Skip to content

Commit

Permalink
chore: fix pattern match error in classes/1
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Aug 12, 2024
1 parent 0b359ee commit 646972e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ash_admin/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ defmodule AshAdmin.Helpers do
[string]
end

def classes(atom) when is_atom(atom) do
[to_string(atom)]
end

def classes({classes, true}) do
classes(classes)
end
Expand Down

0 comments on commit 646972e

Please sign in to comment.