Skip to content

Commit

Permalink
Fix CI failure in main branch (#1658)
Browse files Browse the repository at this point in the history
  • Loading branch information
calina-c authored Oct 7, 2024
1 parent 4609a1d commit 5e877c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pdr_backend/pdr_dashboard/callbacks/callbacks_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def update_predictoors_table_on_search(
]

if "show-favourite-addresses.value" in dash.callback_context.triggered_prop_ids:
if len(stored_predictoor_addrs) > 0:
if stored_predictoor_addrs and len(stored_predictoor_addrs) > 0:
selected_predictoors_addrs = stored_predictoor_addrs
else:
custom_predictoors = formatted_predictoors_data.filter(
Expand Down
2 changes: 1 addition & 1 deletion pdr_backend/pdr_dashboard/test/test_callbacks_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_favourite_addresses_search_input(
fav_addr_toggle.click()
time.sleep(2)
p_all, p_sel = _predictoor_count(dash_duo)
assert len(p_sel) == 1
assert len(p_sel) == 0


def test_checkbox_selection(_sample_app, dash_duo):
Expand Down

0 comments on commit 5e877c7

Please sign in to comment.