Skip to content

Commit

Permalink
Fix B023 inside _link_subobjects
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Nov 30, 2023
1 parent 962f95d commit bb438e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/param.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,11 @@ def toggle_pane(change, parameter=pname):
pane = Param(parameterized, name=parameterized.name,
**kwargs)
if isinstance(self._expand_layout, Tabs):
title = self.object.param[pname].label
title = self.object.param[parameter].label
pane = (title, pane)
self._expand_layout.append(pane)

def update_pane(change, parameter=pname):
def update_pane(change, parameter=pname, toggle=toggle):
"Adds or removes subpanel from layout"
layout = self._expand_layout
existing = [p for p in layout.objects if isinstance(p, Param)
Expand Down

0 comments on commit bb438e7

Please sign in to comment.