From 3986f5ebd67c58983a0073a5f01f43c49730de9a Mon Sep 17 00:00:00 2001 From: Marlus Saraiva Date: Tue, 24 Sep 2024 12:07:21 -0300 Subject: [PATCH] Fix warning on calling component_type --- lib/surface/catalogue/components/component_info.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/surface/catalogue/components/component_info.ex b/lib/surface/catalogue/components/component_info.ex index 3328f21..51a4271 100644 --- a/lib/surface/catalogue/components/component_info.ex +++ b/lib/surface/catalogue/components/component_info.ex @@ -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