Skip to content

Commit

Permalink
subset plugin: fix IndexError
Browse files Browse the repository at this point in the history
when the selection is set to "Create New" and a subset is updated, there is no information that needs to be updated in the plugin
  • Loading branch information
kecnry committed Oct 4, 2022
1 parent 21cbeae commit 709a4c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jdaviz/configs/default/plugins/subset_plugin/subset_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def _sync_selected_from_state(self, *args):

def _on_subset_update(self, *args):
self._sync_selected_from_state(*args)
if self.subset_selected == 'Create New':
return
self._get_subset_definition(*args)
subset_to_update = self.session.edit_subset_mode.edit_subset[0]
self.subset_select._update_subset(subset_to_update, attribute="type")
Expand Down

0 comments on commit 709a4c7

Please sign in to comment.