Skip to content

Commit

Permalink
🙈 Ignore interactions with empty events
Browse files Browse the repository at this point in the history
  • Loading branch information
esloho committed Nov 28, 2022
1 parent eb08d1e commit ec56481
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions converter/prototype.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def convert_flow(fig_node: dict) -> _Flow:
if interaction["isDeleted"]:
continue

if "event" not in interaction or interaction["event"] == {}:
continue

interaction_type = interaction["event"].get("interactionType")
if interaction_type != "ON_CLICK":
utils.log_conversion_warning("PRT001", fig_node, props=[interaction_type])
Expand Down

0 comments on commit ec56481

Please sign in to comment.