Skip to content

Commit

Permalink
fix repr for select component (#3367)
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry authored Dec 19, 2024
1 parent a0d77f5 commit 0693231
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jdaviz/core/template_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,8 @@ def __init__(self, *args, **kwargs):

def __repr__(self):
if hasattr(self, 'multiselect'):
return f"<selected='{self.selected}' multiselect={self.multiselect} choices={self.choices}>" # noqa
# NOTE: selected is a list here so should not be wrapped with quotes
return f"<selected={self.selected} multiselect={self.multiselect} choices={self.choices}>" # noqa
return f"<selected='{self.selected}' choices={self.choices}>"

def __eq__(self, other):
Expand Down

0 comments on commit 0693231

Please sign in to comment.