Browse Source

Fix CustomComponent rendering (#2169)

Masen Furer 1 year ago
parent
commit
ce47fcfd6c
2 changed files with 3 additions and 1 deletions
  1. 1 1
      .github/workflows/integration_tests.yml
  2. 2 0
      reflex/components/component.py

+ 1 - 1
.github/workflows/integration_tests.yml

@@ -123,7 +123,7 @@ jobs:
         uses: actions/checkout@v4
         uses: actions/checkout@v4
         with:
         with:
           repository: reflex-dev/reflex-web
           repository: reflex-dev/reflex-web
-          ref: reflex-ci
+          ref: main
           path: reflex-web
           path: reflex-web
 
 
       - name: Install Requirements for reflex-web
       - name: Install Requirements for reflex-web

+ 2 - 0
reflex/components/component.py

@@ -384,6 +384,8 @@ class Component(Base, ABC):
             ref = self.get_ref()
             ref = self.get_ref()
             if ref is not None:
             if ref is not None:
                 props["ref"] = Var.create(ref, _var_is_local=False)
                 props["ref"] = Var.create(ref, _var_is_local=False)
+        else:
+            props = props.copy()
 
 
         props.update(
         props.update(
             self.event_triggers,
             self.event_triggers,