Skip to content

Commit 201bad8

Browse files
committed
fix: use Code.ensure_loaded? before checking if function exported
1 parent 531de96 commit 201bad8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ash_admin.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ defmodule AshAdmin do
1313
:text
1414

1515
{m, f, a} when is_list(a) ->
16-
if function_exported?(m, f, length(a)) do
16+
if Code.ensure_loaded?(m) && function_exported?(m, f, length(a)) do
1717
:dropdown
1818
else
1919
:typeahead

0 commit comments

Comments
 (0)