Skip to content

Commit e3f52b0

Browse files
committed
Remove unnecessary check
1 parent 0761374 commit e3f52b0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

shiny/ui/_chat.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,8 @@ def enable_bookmarking(
14361436

14371437
if session.bookmark.store == "disable":
14381438
raise ValueError(
1439-
"Bookmarking requires a `bookmark_store` to be set. Please set `bookmark_store=` in `App()`."
1439+
"Bookmarking requires a `bookmark_store` to be set. "
1440+
"Please set `bookmark_store=` in `shiny.App()` or `shiny.express.app_opts()."
14401441
)
14411442

14421443
resolved_bookmark_id_str = str(self.id)
@@ -1719,12 +1720,6 @@ def chat_ui(
17191720
Additional attributes for the chat container element.
17201721
"""
17211722

1722-
if "bookmark_store" in kwargs:
1723-
raise ValueError(
1724-
"The `bookmark_store=` argument is not supported in this function. "
1725-
"Please use the `bookmark_store` argument when constructing the `App()`."
1726-
)
1727-
17281723
id = resolve_id(id)
17291724

17301725
icon_attr = None

0 commit comments

Comments
 (0)