Skip to content

Commit

Permalink
Prevent empty explorations from crashing (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 authored Jan 3, 2025
1 parent 608b2b3 commit 34a7328
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lumen/ai/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ def _global_export_notebook(self):

async def _update_conversation(self, event=None, tab=None):
active = self._explorations.active
if len(self._conversations) <= active:
return

if tab is None:
# When user switches tabs and coordinator is running
# wait to switch the conversation context
Expand Down

0 comments on commit 34a7328

Please sign in to comment.