Skip to content

Commit

Permalink
Fix warning on calling component_type
Browse files Browse the repository at this point in the history
  • Loading branch information
msaraiva committed Sep 24, 2024
1 parent 1fca56e commit 3986f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/surface/catalogue/components/component_info.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule Surface.Catalogue.Components.ComponentInfo do
data api_anchor_id, :string

def update(assigns) do
prefix = if assigns.module.component_type == Surface.MacroComponent, do: "#", else: ""
prefix = if assigns.module.component_type() == Surface.MacroComponent, do: "#", else: ""

module_name =
assigns.module
Expand Down

0 comments on commit 3986f5e

Please sign in to comment.