Skip to content

Commit

Permalink
And again...
Browse files Browse the repository at this point in the history
  • Loading branch information
mchilvers committed Apr 2, 2024
1 parent 8042152 commit 64a0949
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/invent/ui/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,21 +165,15 @@ def _app_from_dict(app_dict):

app_dict["content"] = content

app = App(**app_dict)

# Sanity check!
#assert app.as_dict() == app_dict

return app
return App(**app_dict)


def _component_from_dict(component_dict):
"""Create a component from the specified dictionary representation."""

from invent import ui

cls_name = component_dict["type"]
cls = getattr(ui, cls_name)
cls = getattr(ui, component_dict["type"])

if issubclass(cls, Container):
content = [
Expand Down

0 comments on commit 64a0949

Please sign in to comment.