Skip to content

Commit 6d85fed

Browse files
committed
fix the boolean condition in the webapp
1 parent 8c78fac commit 6d85fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shapash/webapp/utils/callbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def create_filter_modalities_selection(value: str, id: dict, round_dataframe: pd
635635
html.Div
636636
Div containing the modalities selection options
637637
"""
638-
if type(round_dataframe[value].iloc[0]) is np.bool_ and type(round_dataframe[value].iloc[0]) is bool:
638+
if type(round_dataframe[value].iloc[0]) is np.bool_ or type(round_dataframe[value].iloc[0]) is bool:
639639
new_element = html.Div(
640640
dcc.RadioItems(
641641
[{"label": str(val), "value": val} for val in round_dataframe[value].unique()],

0 commit comments

Comments
 (0)