浏览代码

Fixup warning when frontend_packages are specified and tailwind is not (#1761)

Masen Furer 1 年之前
父节点
当前提交
dd03a277cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      reflex/app.py

+ 1 - 1
reflex/app.py

@@ -529,7 +529,7 @@ class App(Base):
         frontend_packages = get_config().frontend_packages
         _frontend_packages = []
         for package in frontend_packages:
-            if package in get_config().tailwind.get("plugins", []):  # type: ignore
+            if package in (get_config().tailwind or {}).get("plugins", []):  # type: ignore
                 console.warn(
                     f"Tailwind packages are inferred from 'plugins', remove `{package}` from `frontend_packages`"
                 )