Skip to content

Commit

Permalink
Update plugins/ui/docs/describing/render_lists.md
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Bender <[email protected]>
  • Loading branch information
dgodinez-dh and mofojed authored Dec 20, 2024
1 parent 7bc926d commit 2d59d0f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/ui/docs/describing/render_lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ def ui_deletable_cell(i, delete_cell):
on_press=lambda: delete_cell(i),
),
align_items="end",
# comment in this line to fix
# key=str(i),
)


Expand All @@ -143,7 +141,7 @@ def ui_cells():
set_cells(lambda old_cells: [c for c in old_cells if c != delete_id])

return ui.view(
[ui_deletable_cell(i, delete_cell) for i in cells],
[ui_deletable_cell(i, delete_cell, key=str(i)) for i in cells],
ui.action_button(ui.icon("vsAdd"), "Add cell", on_press=add_cell),
overflow="auto",
)
Expand Down

0 comments on commit 2d59d0f

Please sign in to comment.