Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 4, 2023
1 parent 3951bf6 commit 6ee112a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions panel/reactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,8 @@ def __init__(self, refs=None, **params):
self._async_refs = {}
params, refs = self._extract_refs(params, refs)
super().__init__(**params)
if 'object' in params:
print(self.object)
self._refs = refs
self._setup_refs(refs)

Expand Down Expand Up @@ -606,9 +608,10 @@ def _extract_refs(self, params, refs):
ref, value = self._resolve_ref(pname, value)
if ref is not None:
out_refs[pname] = ref
if pname == 'refs' and value is not None:
processed.update(value)
elif value is not None:
if pname == 'refs':
if value is not None:
processed.update(value)
else:
processed[pname] = value
return processed, out_refs

Expand Down

0 comments on commit 6ee112a

Please sign in to comment.