Skip to content

Commit

Permalink
Update py/examples/table_events_select.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci authored Jan 26, 2023
1 parent f430925 commit 4242170
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions py/examples/table_events_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

@app('/demo')
async def serve(q: Q):
if q.events.table:
if q.events.table.select:
if q.events.table and q.events.table.select:
q.page['description'].content = f'{q.events.table.select}'
else:
q.page['table'] = ui.form_card(box='1 1 3 4', items=[
Expand Down

0 comments on commit 4242170

Please sign in to comment.