Skip to content

Commit

Permalink
bugfix reported by Wiebke: nect slice conficlting with toggle results
Browse files Browse the repository at this point in the history
  • Loading branch information
cleaaum committed Oct 3, 2023
1 parent bd5b082 commit 6ce423b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion callbacks/image_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def render_image(
if toggle_seg_result:
# if toggle is true and overlay exists already (2 images in data) this will
# be handled in hide_show_segmentation_overlay callback
if len(fig["data"]) == 2:
if len(fig["data"]) == 2 and ctx.triggered_id != "image-selection-slider":
raise PreventUpdate
result = get_data_sequence_by_name(seg_result_selection)[image_idx]
else:
Expand Down

0 comments on commit 6ce423b

Please sign in to comment.