Skip to content

Commit

Permalink
Fixed issue with pn.state.onload callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 18, 2020
1 parent e8eeda7 commit 88b23b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/io/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _onload(self, event):
# Skip if href was not previously empty or not in a server context
if event.old or not state.curdoc:
return
for cb in state._onload[state.curdoc]:
for cb in state._onload.get(state.curdoc, []):
cb()

def _get_model(self, doc, root=None, parent=None, comm=None):
Expand Down

0 comments on commit 88b23b3

Please sign in to comment.