diff --git a/CHANGES.rst b/CHANGES.rst index 9942dc778c..9d9987460c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 ^^^^^^^ diff --git a/jdaviz/configs/mosviz/plugins/viewers.py b/jdaviz/configs/mosviz/plugins/viewers.py index e22df4b9a6..ddf5e07280 100644 --- a/jdaviz/configs/mosviz/plugins/viewers.py +++ b/jdaviz/configs/mosviz/plugins/viewers.py @@ -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(