소스 검색

component: `imports` override `_get_dependencies_imports` (#1859)

Masen Furer 1 년 전
부모
커밋
2f284a08b6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      reflex/components/component.py

+ 1 - 1
reflex/components/component.py

@@ -603,7 +603,7 @@ class Component(Base, ABC):
         imports = {}
         if self.library is not None and self.tag is not None:
             imports[self.library] = {self.import_var}
-        return {**imports, **self._get_dependencies_imports()}
+        return {**self._get_dependencies_imports(), **imports}
 
     def get_imports(self) -> imports.ImportDict:
         """Get all the libraries and fields that are used by the component.