Skip to content

Commit 0f8abec

Browse files
committed
fix: ensure location sync is only set up when location is available
1 parent 5aa7089 commit 0f8abec

2 files changed

Lines changed: 197 additions & 101 deletions

File tree

pydelmod/dvue/dataui.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,9 @@ def create_data_table(self, dfs):
540540
return gspec
541541

542542
def setup_location_sync(self):
543-
pn.state.location.param.watch(self.update_view_from_location, "hash")
544-
self.update_view_from_location()
543+
if pn.state.location:
544+
pn.state.location.param.watch(self.update_view_from_location, "hash")
545+
self.update_view_from_location()
545546

546547
def get_version(self):
547548
try:

0 commit comments

Comments
 (0)