EasySci commited on
Commit
f482408
·
1 Parent(s): f7805ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -37,8 +37,7 @@ header_buttons = pn.Column(sizing_mode='stretch_width', css_classes=['header-but
37
  def add_to_header(event):
38
  selected_option = filter_list.value
39
  if selected_option:
40
- new_button = pn.widgets.Button(name=selected_option[0], width=130, sizing_mode='fixed')
41
- header_buttons.append(new_button)
42
  filter_list.value = [] # Clear the selected option after adding it to the header
43
 
44
  # "+" button to trigger the addition to the header
 
37
  def add_to_header(event):
38
  selected_option = filter_list.value
39
  if selected_option:
40
+ header_buttons.append(pn.widgets.Button(name=selected_option[0], width=130, sizing_mode='fixed'))
 
41
  filter_list.value = [] # Clear the selected option after adding it to the header
42
 
43
  # "+" button to trigger the addition to the header