Jelajahi Sumber

Merge branch 'main' into pytests

Rodja Trappe 2 tahun lalu
induk
melakukan
03aacc4dca
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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: