Skip to content

Commit 40df87c

Browse files
committed
Address review: use footer_actions directly, restore panel-material-ui pin
Removed hasattr fallback for footer_actions/footer_objects since panel-material-ui >=0.9.0 guarantees footer_actions. Restored the pin that was accidentally lowered to >=0.8.1.
1 parent 17e88cf commit 40df87c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

lumen/ai/ui.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,12 +1634,11 @@ async def _generate_follow_up():
16341634

16351635
if len(self.interface):
16361636
message = self.interface.objects[-1]
1637-
attr = "footer_actions" if hasattr(message, "footer_actions") else "footer_objects"
16381637
existing = [
1639-
obj for obj in (getattr(message, attr) or [])
1638+
obj for obj in (message.footer_actions or [])
16401639
if getattr(obj, 'name', '') != "FollowUp"
16411640
]
1642-
setattr(message, attr, existing + [follow_up_button])
1641+
message.footer_actions = existing + [follow_up_button]
16431642

16441643
def __panel__(self):
16451644
return self._main

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lint = ["py312", "lint"]
2020
[dependencies]
2121
bokeh = "*"
2222
holoviews = ">=1.17.0"
23-
panel-material-ui = ">=0.8.1"
23+
panel-material-ui = ">=0.9.0"
2424
hvplot = "*"
2525
intake = "<2"
2626
jinja2 = ">3.0"

0 commit comments

Comments
 (0)