Explorar el Código

allow link as metatags (#3980)

* allow link as metatags

* remove stray print & fix nit
Thomas Brandého hace 8 meses
padre
commit
46be46d6ea
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      reflex/compiler/utils.py

+ 4 - 4
reflex/compiler/utils.py

@@ -429,11 +429,11 @@ def add_meta(
     Returns:
         The component with the metadata added.
     """
-    meta_tags = [Meta.create(**item) for item in meta]
-
-    children: list[Any] = [
-        Title.create(title),
+    meta_tags = [
+        item if isinstance(item, Component) else Meta.create(**item) for item in meta
     ]
+
+    children: list[Any] = [Title.create(title)]
     if description:
         children.append(Description.create(content=description))
     children.append(Image.create(content=image))