File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,10 @@ def _render_component(
203
203
# wrap the model in a fragment (i.e. tagName="") to ensure components have
204
204
# a separate node in the model state tree. This could be removed if this
205
205
# components are given a node in the tree some other way
206
- raw_model = {"tagName" : "" , "children" : [raw_model ]}
206
+ raw_model = {
207
+ "tagName" : "" ,
208
+ "children" : [] if raw_model is None else [raw_model ],
209
+ }
207
210
208
211
self ._render_model (old_state , new_state , raw_model )
209
212
except Exception as error :
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def definition_id(self) -> int:
39
39
Usually the :func:`id` of this class or an underlying function.
40
40
"""
41
41
42
- def render (self ) -> VdomDict :
42
+ def render (self ) -> VdomDict | ComponentType | None :
43
43
"""Render the component's :class:`VdomDict`."""
44
44
45
45
You can’t perform that action at this time.
0 commit comments