Skip to content

Commit

Permalink
Fixed param warnings (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Mar 13, 2020
1 parent 07f031c commit ce9fa3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/widgets/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _update_label(self):
raise ValueError('Must provide filename if file-like '
'object is provided.')
label = '%s %s' % (label, filename)
self.set_param(label=label)
self.label = label
self._default_label = True

@param.depends('embed', 'file', 'callback', watch=True)
Expand Down Expand Up @@ -292,5 +292,5 @@ def _transfer(self):
data = "data:{mime};base64,{b64}".format(mime=mime, b64=b64)
self._synced = True

self.set_param(data=data, filename=filename)
self.param.set_param(data=data, filename=filename)
self._update_label()

0 comments on commit ce9fa3a

Please sign in to comment.