Browse Source

fix small typing issue (#3562)

Thomas Brandého 11 months ago
parent
commit
764f723829
1 changed files with 2 additions and 1 deletions
  1. 2 1
      reflex/components/component.py

+ 2 - 1
reflex/components/component.py

@@ -1538,7 +1538,8 @@ class Component(BaseComponent, ABC):
         if hooks is not None:
             code[hooks] = None
 
-        code.update(self._get_added_hooks())
+        for hook in self._get_added_hooks():
+            code[hook] = None
 
         # Add the hook code for the children.
         for child in self.children: