Skip to content

Commit

Permalink
Merge pull request #1812 from kecnry/fix-mosviz-image-row-change
Browse files Browse the repository at this point in the history
FIX: mosviz image remove on row change
  • Loading branch information
kecnry authored Nov 2, 2022
2 parents 5038261 + 8a1eb25 commit d136397
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ Bug Fixes

- Change box zoom to always maintain aspect ratio. [#1726]

- Fixed removing image data from viewer when changing row. [#1812]

Cubeviz
^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion jdaviz/configs/mosviz/plugins/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def _on_row_selected(self, event):
] = selected_data

if component.label == 'Images':
prev_data = self._selected_data.get(self._default_table_viewer_reference_name)
prev_data = self._selected_data.get(self._default_image_viewer_reference_name)
if prev_data != selected_data:
if prev_data:
remove_data_from_viewer_message = RemoveDataFromViewerMessage(
Expand Down

0 comments on commit d136397

Please sign in to comment.