Переглянути джерело

Merge branch 'main' into pytests

Rodja Trappe 2 роки тому
батько
коміт
03aacc4dca
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      nicegui/routes.py

+ 1 - 2
nicegui/routes.py

@@ -66,8 +66,7 @@ def add_dependencies(py_filepath: str, dependencies: List[str] = []) -> None:
     if py_filepath in globals.dependencies:
         return
     globals.dependencies[py_filepath] = dependencies
-    if not dependencies:
-        return
+
     vue_filepath = os.path.splitext(os.path.realpath(py_filepath))[0] + '.js'
 
     for dependency in dependencies: