Skip to content

Commit

Permalink
fix viewer reference when None (imviz additional viewers)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Feb 24, 2023
1 parent abcfd83 commit edeb56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdaviz/configs/default/plugins/markers/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _on_viewer_key_event(self, viewer, data):
row_info = self.app.session.application._tools['g-coords-info'].as_dict()

if 'viewer' in self.table.headers_avail:
row_info['viewer'] = viewer.reference
row_info['viewer'] = viewer.reference if viewer.reference is not None else viewer.reference_id

for k in self.table.headers_avail:
row_info.setdefault(k, _default_table_values.get(k, ''))
Expand Down

0 comments on commit edeb56e

Please sign in to comment.